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
39075e49
Commit
39075e49
authored
Mar 15, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
100996c7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
7 deletions
+41
-7
EquipmentBaseAppVO.java
...join/equipmanage/common/entity/vo/EquipmentBaseAppVO.java
+3
-0
ConfirmAlarmServiceImpl.java
...oin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
+30
-6
EquipmentMapper.xml
...ystem-equip/src/main/resources/mapper/EquipmentMapper.xml
+3
-1
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+5
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/EquipmentBaseAppVO.java
View file @
39075e49
...
@@ -57,4 +57,7 @@ public class EquipmentBaseAppVO {
...
@@ -57,4 +57,7 @@ public class EquipmentBaseAppVO {
@ApiModelProperty
(
value
=
"更新時間"
)
@ApiModelProperty
(
value
=
"更新時間"
)
private
String
alarmTime
;
private
String
alarmTime
;
@ApiModelProperty
(
value
=
"状态"
)
private
String
status
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
View file @
39075e49
...
@@ -25,10 +25,7 @@ import com.yeejoin.equipmanage.common.utils.StringUtil;
...
@@ -25,10 +25,7 @@ import com.yeejoin.equipmanage.common.utils.StringUtil;
import
com.yeejoin.equipmanage.common.vo.Token
;
import
com.yeejoin.equipmanage.common.vo.Token
;
import
com.yeejoin.equipmanage.fegin.JcsFeign
;
import
com.yeejoin.equipmanage.fegin.JcsFeign
;
import
com.yeejoin.equipmanage.fegin.SystemctlFeign
;
import
com.yeejoin.equipmanage.fegin.SystemctlFeign
;
import
com.yeejoin.equipmanage.mapper.ConfirmAlarmMapper
;
import
com.yeejoin.equipmanage.mapper.*
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificAlarmMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificMapper
;
import
com.yeejoin.equipmanage.mapper.VideoMapper
;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.remote.WebMqttHandler
;
import
com.yeejoin.equipmanage.remote.WebMqttHandler
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.service.*
;
...
@@ -109,7 +106,8 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
...
@@ -109,7 +106,8 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
@Autowired
@Autowired
private
EquipmentSpecificAlarmMapper
equipmentSpecificAlarmMapper
;
private
EquipmentSpecificAlarmMapper
equipmentSpecificAlarmMapper
;
@Autowired
private
EquipmentSpecificAlarmLogMapper
equipmentSpecificAlarmLogMapper
;
...
@@ -176,8 +174,34 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
...
@@ -176,8 +174,34 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
list
=
equipmentSpecificAlarmLogService
.
getIsConfirmByAlarmId
(
equipmentSpecificAlarmId
,
"0"
);
list
=
equipmentSpecificAlarmLogService
.
getIsConfirmByAlarmId
(
equipmentSpecificAlarmId
,
"0"
);
}
}
}
}
switch
(
ent
.
getType
()){
case
"火警"
:
ent
.
setType
(
"FIREALARM"
);
break
;
case
"故障"
:
ent
.
setType
(
"BREAKDOWN"
);
break
;
case
"屏蔽"
:
ent
.
setType
(
"SHIELD"
);
break
;
case
"预警"
:
ent
.
setType
(
"NOTICE"
);
break
;
default
:
ent
.
setType
(
""
);
}
ent
.
setUpdateDate
(
new
Date
());
int
i
=
0
;
if
(
ent
.
getIsBatch
()
==
0
){
i
=
equipmentSpecificAlarmLogMapper
.
updateById
(
ent
);
}
else
{
LambdaUpdateWrapper
<
EquipmentSpecificAlarmLog
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
EquipmentSpecificAlarmLog:
:
getEquipmentSpecificAlarmId
,
ent
.
getEquipmentSpecificAlarmId
());
i
=
equipmentSpecificAlarmLogMapper
.
update
(
ent
,
updateWrapper
);
}
//int i = confirmAlarmMapper.confirmAlam(ent);
int
i
=
confirmAlarmMapper
.
confirmAlam
(
ent
);
if
(
i
>
0
)
{
if
(
i
>
0
)
{
if
(
jcsSwitch
&&
AlarmTypeEnum
.
HZGJ
.
getCode
().
equals
(
ent
.
getConfirmType
()))
{
if
(
jcsSwitch
&&
AlarmTypeEnum
.
HZGJ
.
getCode
().
equals
(
ent
.
getConfirmType
()))
{
// 确警消息发送
// 确警消息发送
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentMapper.xml
View file @
39075e49
...
@@ -126,6 +126,8 @@
...
@@ -126,6 +126,8 @@
wled.manufacturer_id,
wled.manufacturer_id,
wled.maintenance_cycle,
wled.maintenance_cycle,
stru.full_name,
stru.full_name,
IFNULL(( select DISTINCT wl_equipment_specific_alarm.`status` from wl_equipment_specific_alarm where
wl_equipment_specific_alarm.`status`=1 and wl_equipment_specific_alarm.equipment_detail_id=wled.id ), 0) as status ,
(select group_concat(sys.name) from `f_fire_fighting_system` sys where find_in_set(sys.id, wleq.system_id)) as name
(select group_concat(sys.name) from `f_fire_fighting_system` sys where find_in_set(sys.id, wleq.system_id)) as name
FROM
FROM
wl_equipment_specific wleq
wl_equipment_specific wleq
...
@@ -136,7 +138,7 @@
...
@@ -136,7 +138,7 @@
left join wl_stock_detail wlsbd on wleq.qr_code = wlsbd.qr_code
left join wl_stock_detail wlsbd on wleq.qr_code = wlsbd.qr_code
LEFT JOIN wl_system_dic wlsd ON wlsd.id = wled.country
LEFT JOIN wl_system_dic wlsd ON wlsd.id = wled.country
left join wl_warehouse_structure as stru on wlsbd.warehouse_structure_id = stru.id
left join wl_warehouse_structure as stru on wlsbd.warehouse_structure_id = stru.id
where wleq.code=#{qrCode}
where wleq.
qr_
code=#{qrCode}
</select>
</select>
<select
id=
"getImportantEquipmentList"
resultMap=
"ImportantEquipmentVO"
>
<select
id=
"getImportantEquipmentList"
resultMap=
"ImportantEquipmentVO"
>
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
39075e49
...
@@ -951,6 +951,9 @@
...
@@ -951,6 +951,9 @@
<if
test=
"dto.code != null"
>
<if
test=
"dto.code != null"
>
and d.code like CONCAT('%', #{dto.code}, '%' )
and d.code like CONCAT('%', #{dto.code}, '%' )
</if>
</if>
<if
test=
"dto.fireEquipmentCode != null"
>
and d.fireEquipmentCode like CONCAT('%', #{dto.fireEquipmentCode}, '%' )
</if>
</where>
</where>
ORDER BY
ORDER BY
d.createDate DESC
d.createDate DESC
...
@@ -964,6 +967,7 @@
...
@@ -964,6 +967,7 @@
b.code fireEquipmentCode,
b.code fireEquipmentCode,
b.eqimg eqimg,
b.eqimg eqimg,
b.alarmTime alarmTime,
b.alarmTime alarmTime,
b.qrCode code,
IFNULL(( select DISTINCT wl_equipment_specific_alarm.`status` from wl_equipment_specific_alarm where
IFNULL(( select DISTINCT wl_equipment_specific_alarm.`status` from wl_equipment_specific_alarm where
wl_equipment_specific_alarm.`status`=1 and wl_equipment_specific_alarm.equipment_detail_id=b.eqid ), 0) `status`
wl_equipment_specific_alarm.`status`=1 and wl_equipment_specific_alarm.equipment_detail_id=b.eqid ), 0) `status`
from
from
...
@@ -971,6 +975,7 @@
...
@@ -971,6 +975,7 @@
wl_warehouse_structure.full_name address,
wl_warehouse_structure.full_name address,
wl_equipment_detail.name eqname,
wl_equipment_detail.name eqname,
wl_equipment_specific.code code,
wl_equipment_specific.code code,
wl_stock_detail.qr_code qrCode,
wl_equipment.img eqimg,
wl_equipment.img eqimg,
wl_equipment_detail.id eqid,
wl_equipment_detail.id eqid,
wl_equipment_specific.system_id,
wl_equipment_specific.system_id,
...
...
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