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
54f5956a
Commit
54f5956a
authored
Aug 28, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
依据绍兴现场反馈修改大屏告警趋势
parent
0877e5df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+6
-6
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+4
-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 @
54f5956a
...
...
@@ -1226,13 +1226,13 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
.
eq
(
EquipmentSpecific:
:
getSingle
,
true
)
);
// 未复归设备
List
<
EquipmentSpecificAlarm
Log
>
equipSpecIds
=
equipmentSpecificAlarmLog
Mapper
.
selectList
(
Wrappers
.<
EquipmentSpecificAlarm
Log
>
lambdaQuery
()
.
select
(
EquipmentSpecificAlarm
Log
:
:
getEquipmentSpecificId
)
.
like
(
EquipmentSpecificAlarm
Log
:
:
getSystemIds
,
id
)
.
eq
(
EquipmentSpecificAlarm
Log
:
:
getStatus
,
"1"
)
List
<
EquipmentSpecificAlarm
>
equipSpecIds
=
equipmentSpecificAlarm
Mapper
.
selectList
(
Wrappers
.<
EquipmentSpecificAlarm
>
lambdaQuery
()
.
select
(
EquipmentSpecificAlarm:
:
getEquipmentSpecificId
)
.
like
(
EquipmentSpecificAlarm:
:
getSystemIds
,
id
)
.
eq
(
EquipmentSpecificAlarm:
:
getStatus
,
"1"
)
);
int
count
=
(
int
)
equipSpecIds
.
stream
().
map
(
EquipmentSpecificAlarm
Log
:
:
getEquipmentSpecificId
).
distinct
().
count
();
int
count
=
(
int
)
equipSpecIds
.
stream
().
map
(
EquipmentSpecificAlarm:
:
getEquipmentSpecificId
).
distinct
().
count
();
list
.
add
(
new
AlarmDataVO
(
"部件总数"
,
equipmentCount
+
" 个"
,
false
));
list
.
add
(
new
AlarmDataVO
(
"未复归设备"
,
count
+
" 个"
,
false
));
return
list
;
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
54f5956a
...
...
@@ -6443,7 +6443,7 @@
SELECT
IFNULL(SUM(IF(r.`status` = 0, 1, 0)), 0) AS normalNum,
IFNULL(SUM(IF((r.type = 'BREAKDOWN' AND r.`status` = 1), 1, 0)), 0) AS faultNum,
IFNULL(SUM(IF((r.type
= 'FIREALARM
' AND r.`status` = 1), 1, 0)), 0) AS alarmNum,
IFNULL(SUM(IF((r.type
!= 'BREAKDOWN
' AND r.`status` = 1), 1, 0)), 0) AS alarmNum,
DATE_FORMAT( r.update_date, '%Y-%m-%d') AS date
FROM
wl_equipment_specific_alarm_log r
...
...
@@ -6455,6 +6455,7 @@
</if>
</where>
GROUP BY
r.equipment_specific_id,
LEFT ( r.update_date, 10 )
ORDER BY
r.update_date
...
...
@@ -6491,7 +6492,7 @@
SELECT
IFNULL(SUM(IF(r.`status` = 0, 1, 0)), 0) AS normalNum,
IFNULL(SUM(IF((r.type = 'BREAKDOWN' AND r.`status` = 1), 1, 0)), 0) AS faultNum,
IFNULL(SUM(IF((r.type
= 'FIREALARM
' AND r.`status` = 1), 1, 0)), 0) AS alarmNum,
IFNULL(SUM(IF((r.type
!= 'BREAKDOWN
' AND r.`status` = 1), 1, 0)), 0) AS alarmNum,
DATE_FORMAT( r.update_date, '%Y-%m-%d') AS date
FROM
wl_equipment_specific_alarm_log r
...
...
@@ -6503,6 +6504,7 @@
</if>
</where>
GROUP BY
r.equipment_specific_id,
LEFT ( r.update_date, 10 )
ORDER BY
r.update_date
...
...
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