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
d93a0d7d
Commit
d93a0d7d
authored
May 11, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
告警数量统计修改
parent
443533da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
AlarmMapper.xml
...ot-system-equip/src/main/resources/mapper/AlarmMapper.xml
+4
-0
No files found.
amos-boot-system-equip/src/main/resources/mapper/AlarmMapper.xml
View file @
d93a0d7d
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<if
test=
"systemId != null and systemId !=''"
>
<if
test=
"systemId != null and systemId !=''"
>
and FIND_IN_SET(#{systemId},a.system_ids)
and FIND_IN_SET(#{systemId},a.system_ids)
</if>
</if>
and date_format(a.`create_date`,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')
UNION ALL
UNION ALL
SELECT count(*) num, 'wfggj' as code from wl_equipment_specific_alarm_log a where a.`status` = 1
SELECT count(*) num, 'wfggj' as code from wl_equipment_specific_alarm_log a where a.`status` = 1
and a.biz_org_code like concat(#{bizOrgCode}, '%')
and a.biz_org_code like concat(#{bizOrgCode}, '%')
...
@@ -16,18 +17,21 @@
...
@@ -16,18 +17,21 @@
</if>
</if>
UNION ALL
UNION ALL
SELECT count(*) num, 'hzgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'FIREALARM'
SELECT count(*) num, 'hzgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'FIREALARM'
and a.`status` = 1
and a.biz_org_code like concat(#{bizOrgCode}, '%')
and a.biz_org_code like concat(#{bizOrgCode}, '%')
<if
test=
"systemId != null and systemId !=''"
>
<if
test=
"systemId != null and systemId !=''"
>
and FIND_IN_SET(#{systemId},a.system_ids)
and FIND_IN_SET(#{systemId},a.system_ids)
</if>
</if>
UNION ALL
UNION ALL
SELECT count(*) num, 'gzgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'BREAKDOWN'
SELECT count(*) num, 'gzgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'BREAKDOWN'
a.`status` = 1
and a.biz_org_code like concat(#{bizOrgCode}, '%')
and a.biz_org_code like concat(#{bizOrgCode}, '%')
<if
test=
"systemId != null and systemId !=''"
>
<if
test=
"systemId != null and systemId !=''"
>
and FIND_IN_SET(#{systemId},a.system_ids)
and FIND_IN_SET(#{systemId},a.system_ids)
</if>
</if>
UNION ALL
UNION ALL
SELECT count(*) num, 'pbgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'SHIELD'
SELECT count(*) num, 'pbgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'SHIELD'
and a.`status` = 1
and a.biz_org_code like concat(#{bizOrgCode}, '%')
and a.biz_org_code like concat(#{bizOrgCode}, '%')
<if
test=
"systemId != null and systemId !=''"
>
<if
test=
"systemId != null and systemId !=''"
>
and FIND_IN_SET(#{systemId},a.system_ids)
and FIND_IN_SET(#{systemId},a.system_ids)
...
...
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