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
2b9da949
Commit
2b9da949
authored
Aug 29, 2024
by
张森
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl' into develop_dl
parents
8e7bd069
eca098cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+6
-6
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+6
-4
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 @
2b9da949
...
...
@@ -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 @
2b9da949
...
...
@@ -6443,10 +6443,10 @@
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
wl_equipment_specific_alarm r
LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET( fs.id, r.system_ids )
<where>
r.update_date BETWEEN date_sub( now(), INTERVAL 6 MONTH ) AND now()
...
...
@@ -6455,6 +6455,7 @@
</if>
</where>
GROUP BY
r.equipment_specific_id,
LEFT ( r.update_date, 10 )
ORDER BY
r.update_date
...
...
@@ -6491,10 +6492,10 @@
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
wl_equipment_specific_alarm r
LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET( fs.id, r.system_ids )
<where>
r.update_date BETWEEN date_sub( now(), INTERVAL 15 MONTH ) AND now()
...
...
@@ -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