Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
c3d388dd
Commit
c3d388dd
authored
Feb 21, 2022
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
合并developer代码解决冲突
parents
dacabc54
1ad00a26
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
10 deletions
+21
-10
FireEquipment.java
...oin/equipmanage/common/datasync/entity/FireEquipment.java
+6
-0
CarController.java
...ava/com/yeejoin/equipmanage/controller/CarController.java
+1
-2
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+1
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+1
-2
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+5
-1
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+2
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+5
-4
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/datasync/entity/FireEquipment.java
View file @
c3d388dd
...
@@ -208,5 +208,10 @@ public class FireEquipment implements Serializable {
...
@@ -208,5 +208,10 @@ public class FireEquipment implements Serializable {
@ApiModelProperty
(
value
=
"所关联的设备信息"
)
@ApiModelProperty
(
value
=
"所关联的设备信息"
)
@TableField
(
"fireequipmentinfo"
)
@TableField
(
"fireequipmentinfo"
)
private
String
fireequipmentinfo
;
private
String
fireequipmentinfo
;
@ApiModelProperty
(
value
=
"二维码"
)
@TableField
(
exist
=
false
)
private
String
qrCode
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/CarController.java
View file @
c3d388dd
...
@@ -1152,7 +1152,7 @@ public class CarController extends AbstractBaseController {
...
@@ -1152,7 +1152,7 @@ public class CarController extends AbstractBaseController {
+
"&productKey="
+
prefix
+
"&deviceName="
+
suffix
,
+
"&productKey="
+
prefix
+
"&deviceName="
+
suffix
,
HttpMethod
.
GET
,
httpEntity
,
FeignClientResult
.
class
);
HttpMethod
.
GET
,
httpEntity
,
FeignClientResult
.
class
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
e
.
getMessage
()
);
}
}
if
(
null
!=
feignClientResult
&&
feignClientResult
.
getBody
().
getStatus
()
==
200
)
{
if
(
null
!=
feignClientResult
&&
feignClientResult
.
getBody
().
getStatus
()
==
200
)
{
return
CommonResponseUtil
.
success
(
feignClientResult
.
getBody
().
getResult
());
return
CommonResponseUtil
.
success
(
feignClientResult
.
getBody
().
getResult
());
...
@@ -1160,7 +1160,6 @@ public class CarController extends AbstractBaseController {
...
@@ -1160,7 +1160,6 @@ public class CarController extends AbstractBaseController {
log
.
error
(
"注:iotCode为 ("
+
iotCode
+
") 的车辆不存在于物联系统或物联系统车辆历史轨迹接口出错!"
);
log
.
error
(
"注:iotCode为 ("
+
iotCode
+
") 的车辆不存在于物联系统或物联系统车辆历史轨迹接口出错!"
);
return
CommonResponseUtil
.
success
();
return
CommonResponseUtil
.
success
();
}
}
}
}
/**
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
c3d388dd
...
@@ -509,6 +509,7 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -509,6 +509,7 @@ public class FireFightingSystemController extends AbstractBaseController {
try
{
try
{
return
CommonResponseUtil
.
success
(
fireFightingSystemService
.
update
(
vo
));
return
CommonResponseUtil
.
success
(
fireFightingSystemService
.
update
(
vo
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
return
CommonResponseUtil
.
failure
(
e
.
getMessage
());
return
CommonResponseUtil
.
failure
(
e
.
getMessage
());
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
c3d388dd
...
@@ -839,8 +839,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -839,8 +839,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
if
(!
StringUtil
.
isNotEmpty
(
SystemTypeEnum
.
getEnum
(
systemCode
)))
{
if
(!
StringUtil
.
isNotEmpty
(
SystemTypeEnum
.
getEnum
(
systemCode
)))
{
return
null
;
return
null
;
}
}
Map
<
String
,
Object
>
data
=
null
;
Map
<
String
,
Object
>
data
;
if
(
isUpdate
)
{
if
(
isUpdate
)
{
data
=
saveIntegrationPageSysData
(
systemCode
);
data
=
saveIntegrationPageSysData
(
systemCode
);
}
else
{
}
else
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
c3d388dd
...
@@ -771,9 +771,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -771,9 +771,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
action
.
setStatus
(
AlarmStatusEnum
.
HF
.
getCode
());
action
.
setStatus
(
AlarmStatusEnum
.
HF
.
getCode
());
}
}
action
.
setUpdateDate
(
new
Date
());
action
.
setUpdateDate
(
new
Date
());
// 更新所在系统,设备可能编辑过
// 更新所在系统,设备可能编辑过
,更新所在系统、装备名称、装备定义code
action
.
setSystemIds
(
equipmentSpcIndex
.
getSystemId
());
action
.
setSystemIds
(
equipmentSpcIndex
.
getSystemId
());
action
.
setSystemCodes
(
this
.
getSystemCodeBySpeId
(
equipmentSpcIndex
.
getSystemId
()));
action
.
setSystemCodes
(
this
.
getSystemCodeBySpeId
(
equipmentSpcIndex
.
getSystemId
()));
action
.
setEquipmentSpecificName
(
equipmentSpcIndex
.
getEquipmentSpecificName
());
action
.
setEquipmentCode
(
equipmentSpcIndex
.
getEquipmentCode
());
// 冗余字段,alarm_log表更新时使用
action
.
setCode
(
equipmentSpcIndex
.
getEquipmentSpecificCode
());
equipmentSpecificAlarms
.
add
(
action
);
equipmentSpecificAlarms
.
add
(
action
);
});
});
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
c3d388dd
...
@@ -757,7 +757,8 @@
...
@@ -757,7 +757,8 @@
NOW( ) AS updatedate,
NOW( ) AS updatedate,
es.area_id AS areaid,
es.area_id AS areaid,
ws.`name` AS buildname,
ws.`name` AS buildname,
a.`name` AS workarea
a.`name` AS workarea,
es.qr_code as qrCode
FROM
FROM
wl_equipment_specific es
wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
c3d388dd
...
@@ -796,6 +796,7 @@
...
@@ -796,6 +796,7 @@
<select
id=
"getFireFightingSystemDetail"
<select
id=
"getFireFightingSystemDetail"
resultType=
"com.yeejoin.equipmanage.common.datasync.entity.FireFightingSystem"
>
resultType=
"com.yeejoin.equipmanage.common.datasync.entity.FireFightingSystem"
>
SELECT
SELECT
fs.id,
fs.id,
f.`name` AS stationname,
f.`name` AS stationname,
f.`code` AS stationcode,
f.`code` AS stationcode,
...
@@ -803,7 +804,7 @@
...
@@ -803,7 +804,7 @@
fs.`name` AS aliasname,
fs.`name` AS aliasname,
fs.`code`,
fs.`code`,
fg.group_name AS systemtype,
fg.group_name AS systemtype,
IFNULL(fs.install_date,'')
AS installdate,
fs.install_date
AS installdate,
IFNULL(p.`name`,'') AS chargeperson,
IFNULL(p.`name`,'') AS chargeperson,
IFNULL(fs.charge_person_phone,'') AS chargepersonphone,
IFNULL(fs.charge_person_phone,'') AS chargepersonphone,
IFNULL(mi.`name`,'') AS constructionunit,
IFNULL(mi.`name`,'') AS constructionunit,
...
@@ -823,8 +824,8 @@
...
@@ -823,8 +824,8 @@
LEFT JOIN rpm_person p ON p.id = fs.charge_person,
LEFT JOIN rpm_person p ON p.id = fs.charge_person,
f_station_info f
f_station_info f
<where>
<where>
<if
test=
"
id != null and
id !=''"
>
<if
test=
"
fireFightingSystemVo != null and fireFightingSystemVo.id != null and fireFightingSystemVo.
id !=''"
>
fs.id = #{id}
fs.id = #{
fireFightingSystemVo.
id}
</if>
</if>
</where>
</where>
</select>
</select>
...
@@ -962,7 +963,7 @@
...
@@ -962,7 +963,7 @@
from
from
`wl_equipment_specific_index` si
`wl_equipment_specific_index` si
where
where
si.equipment_index_key = 'FAS_
AirSampler
_FireAlarm') as sgbjqnum,
si.equipment_index_key = 'FAS_
SoundLightAlarm
_FireAlarm') as sgbjqnum,
(SELECT
(SELECT
count(1)
count(1)
from
from
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment