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
90a5fb20
Commit
90a5fb20
authored
Jan 04, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(物联报表): 隐藏告警数为0的设备/指标
parent
6e26788b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+15
-6
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
90a5fb20
...
@@ -141,10 +141,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -141,10 +141,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
@Autowired
@Autowired
private
JCSRemoteService
jcsRemoteService
;
private
JCSRemoteService
jcsRemoteService
;
@Autowired
@Autowired
private
EquipmentSpecificMapper
equipmentSpecificMapper
;
private
EquipmentSpecificMapper
equipmentSpecificMapper
;
@Autowired
@Autowired
private
VideoMapper
videoMapper
;
private
VideoMapper
videoMapper
;
...
@@ -1649,6 +1649,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -1649,6 +1649,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
alarmMap
.
put
(
"fault_equip_num"
,
ObjectUtils
.
isEmpty
(
alarm
.
get
(
"fault_equip_num"
))
?
""
:
String
.
valueOf
(
alarm
.
get
(
"fault_equip_num"
)));
alarmMap
.
put
(
"fault_equip_num"
,
ObjectUtils
.
isEmpty
(
alarm
.
get
(
"fault_equip_num"
))
?
""
:
String
.
valueOf
(
alarm
.
get
(
"fault_equip_num"
)));
// 故障信息条数
// 故障信息条数
alarmMap
.
put
(
"alarm_info_num"
,
ObjectUtils
.
isEmpty
(
alarm
.
get
(
"fault_info_num"
))
?
""
:
String
.
valueOf
(
alarm
.
get
(
"fault_info_num"
)));
alarmMap
.
put
(
"alarm_info_num"
,
ObjectUtils
.
isEmpty
(
alarm
.
get
(
"fault_info_num"
))
?
""
:
String
.
valueOf
(
alarm
.
get
(
"fault_info_num"
)));
if
(
Integer
.
parseInt
(
alarmMap
.
get
(
"alarm_info_num"
).
toString
())
==
0
)
{
continue
;
}
// 设备故障率
// 设备故障率
alarmMap
.
put
(
"faultEquipPercent"
,
ObjectUtils
.
isEmpty
(
alarm
.
get
(
"faultEquipPercent"
))
?
""
:
String
.
valueOf
(
alarm
.
get
(
"faultEquipPercent"
)));
alarmMap
.
put
(
"faultEquipPercent"
,
ObjectUtils
.
isEmpty
(
alarm
.
get
(
"faultEquipPercent"
))
?
""
:
String
.
valueOf
(
alarm
.
get
(
"faultEquipPercent"
)));
// 报警设备总数
// 报警设备总数
...
@@ -1860,6 +1863,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -1860,6 +1863,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
else
{
}
else
{
listItem
.
put
(
"alarmEquipNum"
,
String
.
valueOf
(
0
));
listItem
.
put
(
"alarmEquipNum"
,
String
.
valueOf
(
0
));
}
}
if
(
Integer
.
parseInt
(
listItem
.
get
(
"alarmEquipNum"
).
toString
())
==
0
)
{
continue
;
}
// listItem.put("alarmEquipNum", ObjectUtils.isEmpty(weekItem.get("alarmEquipNum")) ? "" : String.valueOf(weekItem.get("alarmEquipNum")));
// listItem.put("alarmEquipNum", ObjectUtils.isEmpty(weekItem.get("alarmEquipNum")) ? "" : String.valueOf(weekItem.get("alarmEquipNum")));
// 7日告警条数
// 7日告警条数
if
(!
ObjectUtils
.
isEmpty
(
weekItem
.
get
(
"type_code"
))
&&
!
ObjectUtils
.
isEmpty
(
weekItem
.
get
(
"code"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
weekItem
.
get
(
"type_code"
))
&&
!
ObjectUtils
.
isEmpty
(
weekItem
.
get
(
"code"
)))
{
...
@@ -2068,6 +2074,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -2068,6 +2074,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
else
{
}
else
{
listItem
.
put
(
"trueNum"
,
String
.
valueOf
(
0
));
listItem
.
put
(
"trueNum"
,
String
.
valueOf
(
0
));
}
}
if
(
Integer
.
parseInt
(
listItem
.
get
(
"trueNum"
).
toString
())
==
0
)
{
continue
;
}
if
(!
ObjectUtils
.
isEmpty
(
weekItem
.
get
(
"type_code"
))
&&
String
.
valueOf
(
weekItem
.
get
(
"type_code"
)).
endsWith
(
"Fault"
)){
if
(!
ObjectUtils
.
isEmpty
(
weekItem
.
get
(
"type_code"
))
&&
String
.
valueOf
(
weekItem
.
get
(
"type_code"
)).
endsWith
(
"Fault"
)){
if
(!
ObjectUtils
.
isEmpty
(
binMap
)
&&
!
ObjectUtils
.
isEmpty
(
listItem
.
get
(
"name"
))
&&
binMap
.
containsKey
(
String
.
valueOf
(
listItem
.
get
(
"name"
)))){
if
(!
ObjectUtils
.
isEmpty
(
binMap
)
&&
!
ObjectUtils
.
isEmpty
(
listItem
.
get
(
"name"
))
&&
binMap
.
containsKey
(
String
.
valueOf
(
listItem
.
get
(
"name"
)))){
int
newValue
=
Integer
.
parseInt
(
String
.
valueOf
(
listItem
.
get
(
"alarmEquipNum"
)));
int
newValue
=
Integer
.
parseInt
(
String
.
valueOf
(
listItem
.
get
(
"alarmEquipNum"
)));
...
@@ -2405,7 +2414,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -2405,7 +2414,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
return
fireFightingSystemMapper
.
getStationStatusStatistics
();
return
fireFightingSystemMapper
.
getStationStatusStatistics
();
}
}
@Override
@Override
public
void
resetMorphic
()
{
public
void
resetMorphic
()
{
try
{
try
{
...
@@ -2448,15 +2457,15 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -2448,15 +2457,15 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
videoInScene
=
""
.
equals
(
videoInScene
)
?
action
.
getSequenceNbr
().
toString
()
videoInScene
=
""
.
equals
(
videoInScene
)
?
action
.
getSequenceNbr
().
toString
()
:
videoInScene
+
","
+
action
.
getSequenceNbr
();
:
videoInScene
+
","
+
action
.
getSequenceNbr
();
}
}
}
}
parse
.
setChildren
(
newPointList
);
parse
.
setChildren
(
newPointList
);
System
.
out
.
println
(
"parse="
+
JSONObject
.
toJSONString
(
parse
));
System
.
out
.
println
(
"parse="
+
JSONObject
.
toJSONString
(
parse
));
resourceDTO
.
setContent
(
JSONObject
.
toJSONString
(
parse
));
resourceDTO
.
setContent
(
JSONObject
.
toJSONString
(
parse
));
System
.
out
.
println
(
"resourceDTO="
+
JSONObject
.
toJSONString
(
resourceDTO
));
System
.
out
.
println
(
"resourceDTO="
+
JSONObject
.
toJSONString
(
resourceDTO
));
FeignUtil
.
remoteCall
(()
->
Morphic
.
morphicSubjectClient
.
update
(
resourceDTO
));
FeignUtil
.
remoteCall
(()
->
Morphic
.
morphicSubjectClient
.
update
(
resourceDTO
));
sourceScene
.
setPointInScene
(
pointInScene
);
sourceScene
.
setPointInScene
(
pointInScene
);
sourceScene
.
setVideoInScene
(
videoInScene
);
sourceScene
.
setVideoInScene
(
videoInScene
);
System
.
out
.
println
(
"sourceScene="
+
JSONObject
.
toJSONString
(
sourceScene
));
System
.
out
.
println
(
"sourceScene="
+
JSONObject
.
toJSONString
(
sourceScene
));
...
...
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