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
896f3ccf
Commit
896f3ccf
authored
Aug 28, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修稿告警监测告警数据统计查询bug
parent
7f712862
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
EmergencyMapper.xml
...ystem-equip/src/main/resources/mapper/EmergencyMapper.xml
+2
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+6
-5
No files found.
amos-boot-system-equip/src/main/resources/mapper/EmergencyMapper.xml
View file @
896f3ccf
...
...
@@ -1450,6 +1450,7 @@
LEFT JOIN wl_equipment_specific wes ON wes.id = wlesal.equipment_specific_id
LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET( fs.id, wlesal.system_ids )
<where>
fs.system_type_code IS NOT NULL
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
and wlesal.biz_org_code like concat(#{bizOrgCode},'%')
</if>
...
...
@@ -1463,7 +1464,7 @@
AND DATE_FORMAT( #{endDate}, '%Y-%m-%d %H:%i:%s' ) >= wlesal.create_date
</if>
<if
test=
"systemCode != null and systemCode != ''"
>
and fs.
cod
e = #{systemCode}
and fs.
system_typ
e = #{systemCode}
</if>
<if
test=
"name != null and name != ''"
>
and wlesal.equipment_specific_name like concat('%', #{name},'%')
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
896f3ccf
...
...
@@ -7208,13 +7208,14 @@
<select
id=
"getSystemAlarmNum"
resultType=
"Map"
>
SELECT
wlesal.id
AS `key`,
SUM(IF( wlesal.`status` = 1, 1, 0 )) AS `value`,
fs.name AS `name`
fs.system_type
AS `key`,
SUM(IF( wlesal.`status` = 1, 1, 0 )) AS `value`,
fs.name AS `name`
FROM
wl_equipment_specific_alarm_log wlesal
LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET( fs.id, wlesal.system_ids )
<![CDATA[<>]]>
0
wl_equipment_specific_alarm_log wlesal
LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET( fs.id, wlesal.system_ids )
<![CDATA[<>]]>
0
<where>
fs.system_type_code IS NOT NULL
<if
test=
"bizOrgCode!=null and bizOrgCode!=''"
>
AND wlesal.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
...
...
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