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
2aaaecad
Commit
2aaaecad
authored
Jan 15, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改物联报表bug
parent
9655cbaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+10
-7
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+3
-2
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 @
2aaaecad
...
...
@@ -1603,7 +1603,7 @@ 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
(
"alarm_info_num"
,
ObjectUtils
.
isEmpty
(
alarm
.
get
(
"
alarm_info_num"
))
?
""
:
String
.
valueOf
(
alarm
.
get
(
"alarm
_info_num"
)));
alarmMap
.
put
(
"alarm_info_num"
,
ObjectUtils
.
isEmpty
(
alarm
.
get
(
"
fault_info_num"
))
?
""
:
String
.
valueOf
(
alarm
.
get
(
"fault
_info_num"
)));
// 设备故障率
alarmMap
.
put
(
"faultEquipPercent"
,
ObjectUtils
.
isEmpty
(
alarm
.
get
(
"faultEquipPercent"
))
?
""
:
String
.
valueOf
(
alarm
.
get
(
"faultEquipPercent"
)));
// 报警设备总数
...
...
@@ -2013,12 +2013,15 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
else
{
listItem
.
put
(
"trueNum"
,
String
.
valueOf
(
0
));
}
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
oldValue
=
Integer
.
parseInt
(
String
.
valueOf
(
binMap
.
get
(
String
.
valueOf
(
listItem
.
get
(
"name"
)))));
binMap
.
put
(
String
.
valueOf
(
listItem
.
get
(
"name"
)),
newValue
+
oldValue
);
}
else
{
binMap
.
put
(
String
.
valueOf
(
listItem
.
get
(
"name"
)),
listItem
.
get
(
"alarmEquipNum"
));
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"
)))){
int
newValue
=
Integer
.
parseInt
(
String
.
valueOf
(
listItem
.
get
(
"alarmEquipNum"
)));
int
oldValue
=
Integer
.
parseInt
(
String
.
valueOf
(
binMap
.
get
(
String
.
valueOf
(
listItem
.
get
(
"name"
)))));
binMap
.
put
(
String
.
valueOf
(
listItem
.
get
(
"name"
)),
newValue
+
oldValue
);
}
else
{
binMap
.
put
(
String
.
valueOf
(
listItem
.
get
(
"name"
)),
listItem
.
get
(
"alarmEquipNum"
));
}
}
list
.
add
(
listItem
);
}
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
2aaaecad
...
...
@@ -3919,13 +3919,14 @@
<select
id=
"selectMonthPieChartTwo"
resultType=
"java.util.Map"
>
SELECT
ss.alarm_type_name as type,
SUM(index_true_num
) as value
count(distinct(ss.equipment_specific_id)
) as value
from
(
SELECT
rep.alarm_type,
rep.alarm_type_name,
rep.index_true_num
rep.index_true_num,
rep.equipment_specific_id
FROM
wl_equipment_alarm_report_day rep,
(
...
...
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