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
07cd621a
Commit
07cd621a
authored
May 16, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 设备数据-告警信息统计的告警数SQL错误处理
parent
7ebf0065
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AlarmMapper.xml
...ot-system-equip/src/main/resources/mapper/AlarmMapper.xml
+5
-5
No files found.
amos-boot-system-equip/src/main/resources/mapper/AlarmMapper.xml
View file @
07cd621a
...
@@ -10,27 +10,27 @@
...
@@ -10,27 +10,27 @@
</if>
</if>
and date_format(a.`create_date`,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')
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.clean_time IS NULL
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, '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.clean_time IS NULL
and a.`status` = 1
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'
and a.clean_time IS NULL
a.`status` = 1
a
nd 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.clean_time IS NULL
and a.`status` = 1
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 !=''"
>
...
...
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