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
277b8a62
Commit
277b8a62
authored
Jan 10, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:确警接口调试
parent
30f5b416
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
3 deletions
+21
-3
EquipmentSpecificAlarmLog.java
.../equipmanage/common/entity/EquipmentSpecificAlarmLog.java
+4
-0
AlarmListDataVO.java
...va/com/yeejoin/equipmanage/common/vo/AlarmListDataVO.java
+6
-1
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+2
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+0
-0
ConfirmAlarmMapper.xml
...em-equip/src/main/resources/mapper/ConfirmAlarmMapper.xml
+3
-1
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+6
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentSpecificAlarmLog.java
View file @
277b8a62
...
@@ -184,4 +184,8 @@ public class EquipmentSpecificAlarmLog extends BaseEntity {
...
@@ -184,4 +184,8 @@ public class EquipmentSpecificAlarmLog extends BaseEntity {
@TableField
(
"clean_time"
)
@TableField
(
"clean_time"
)
@ApiModelProperty
(
value
=
"消除时间"
)
@ApiModelProperty
(
value
=
"消除时间"
)
private
Date
cleanTime
;
private
Date
cleanTime
;
@ApiModelProperty
(
value
=
"消除状态"
)
@TableField
(
exist
=
false
)
private
String
cleanStatus
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/AlarmListDataVO.java
View file @
277b8a62
...
@@ -23,6 +23,8 @@ public class AlarmListDataVO {
...
@@ -23,6 +23,8 @@ public class AlarmListDataVO {
private
String
alarmEquip
;
private
String
alarmEquip
;
private
String
type
;
private
String
alarmType
;
private
String
alarmType
;
private
String
alarmInfo
;
private
String
alarmInfo
;
...
@@ -34,4 +36,6 @@ public class AlarmListDataVO {
...
@@ -34,4 +36,6 @@ public class AlarmListDataVO {
private
String
alarmTypeCode
;
private
String
alarmTypeCode
;
private
String
cleanStatus
;
private
String
cleanStatus
;
}
private
String
cleanStatusVal
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
277b8a62
...
@@ -208,11 +208,13 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -208,11 +208,13 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
||
AlarmTypeEnum
.
PB
.
getCode
().
equals
(
type
))
{
||
AlarmTypeEnum
.
PB
.
getCode
().
equals
(
type
))
{
dataVO
.
setAlarmType
(
AlarmTypeEnum
.
getTypeByCode
(
String
.
valueOf
(
type
)));
dataVO
.
setAlarmType
(
AlarmTypeEnum
.
getTypeByCode
(
String
.
valueOf
(
type
)));
}
}
dataVO
.
setType
(
String
.
valueOf
(
x
.
get
(
"type"
)));
dataVO
.
setAlarmInfo
(
x
.
get
(
"fireEquipmentName"
)
+
dataVO
.
getAlarmType
());
dataVO
.
setAlarmInfo
(
x
.
get
(
"fireEquipmentName"
)
+
dataVO
.
getAlarmType
());
dataVO
.
setEquipSpeId
(
Long
.
valueOf
(
String
.
valueOf
(
x
.
get
(
"fireEquipmentId"
))));
dataVO
.
setEquipSpeId
(
Long
.
valueOf
(
String
.
valueOf
(
x
.
get
(
"fireEquipmentId"
))));
dataVO
.
setAlarmId
(
Long
.
valueOf
(
String
.
valueOf
(
x
.
get
(
"alarmId"
))));
dataVO
.
setAlarmId
(
Long
.
valueOf
(
String
.
valueOf
(
x
.
get
(
"alarmId"
))));
dataVO
.
setAlarmTypeCode
(
String
.
valueOf
(
x
.
get
(
"fireEquipmentSpecificIndexKey"
)));
dataVO
.
setAlarmTypeCode
(
String
.
valueOf
(
x
.
get
(
"fireEquipmentSpecificIndexKey"
)));
dataVO
.
setCleanStatus
(
String
.
valueOf
(
x
.
get
(
"cleanStatus"
)));
dataVO
.
setCleanStatus
(
String
.
valueOf
(
x
.
get
(
"cleanStatus"
)));
dataVO
.
setCleanStatusVal
(
String
.
valueOf
(
x
.
get
(
"cleanStatusVal"
)));
res
.
add
(
dataVO
);
res
.
add
(
dataVO
);
});
});
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
277b8a62
This diff is collapsed.
Click to expand it.
amos-boot-system-equip/src/main/resources/mapper/ConfirmAlarmMapper.xml
View file @
277b8a62
...
@@ -44,7 +44,9 @@
...
@@ -44,7 +44,9 @@
confirm_user,
confirm_user,
confirm_user_name,
confirm_user_name,
confirm_date,
confirm_date,
(SELECT GROUP_CONCAT(fem.name) FROM `f_fire_fighting_system` fem WHERE find_in_set(fem.id,spe.system_id)) as systemName
(SELECT GROUP_CONCAT(fem.name) FROM `f_fire_fighting_system` fem WHERE find_in_set(fem.id,spe.system_id)) as systemName,
if(ala.clean_time is null, '未清除', '已清除') AS cleanStatus,
ala.clean_time
from
from
wl_equipment_specific_alarm_log as ala
wl_equipment_specific_alarm_log as ala
left join wl_equipment_specific as spe on spe.id = ala.equipment_specific_id
left join wl_equipment_specific as spe on spe.id = ala.equipment_specific_id
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
277b8a62
...
@@ -311,6 +311,11 @@
...
@@ -311,6 +311,11 @@
'已消除',
'已消除',
'未消除'
'未消除'
) cleanStatus,
) cleanStatus,
IF (
wlesal.clean_time IS NOT NULL,
'1',
'2'
) cleanStatusVal,
wlesal.confirm_type AS handleType,
wlesal.confirm_type AS handleType,
wlesal.system_codes AS systemCodes,
wlesal.system_codes AS systemCodes,
wlesal.equipment_index_id AS fireEquipmentIndexId,
wlesal.equipment_index_id AS fireEquipmentIndexId,
...
@@ -370,7 +375,7 @@
...
@@ -370,7 +375,7 @@
</choose>
</choose>
<if
test=
"param.beginDate!=null"
>
AND d.createDate
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.beginDate!=null"
>
AND d.createDate
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate!=null"
>
AND d.createDate
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.endDate!=null"
>
AND d.createDate
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.alarmType
== 'BREAKDOWN' or param.alarmType == 'FIREALARM
'"
>
AND d.type = #{param.alarmType}
</if>
<if
test=
"param.alarmType
!= null and param.alarmType != '
'"
>
AND d.type = #{param.alarmType}
</if>
<if
test=
"param.systemCode != null and param.systemCode != ''"
>
<if
test=
"param.systemCode != null and param.systemCode != ''"
>
AND find_in_set(#{param.systemCode},d.systemCodes)
AND find_in_set(#{param.systemCode},d.systemCodes)
</if>
</if>
...
...
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