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
c88d394f
Commit
c88d394f
authored
Sep 02, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改4小查询脚本
parent
cc163d7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+6
-7
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+7
-8
No files found.
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
c88d394f
...
...
@@ -1146,20 +1146,19 @@
</if>
</where>
union all
SELECT
SELECT
'异常' AS `name`,
COUNT(
wlesa.equipment_specific_index_value = 'true'
) AS `value`
COUNT(
DISTINCT wlesa.equipment_specific_id
) AS `value`
FROM
wl_equipment_specific_alarm wlesa
LEFT JOIN `wl_equipment_specific` `wles` ON `wlesa`.`equipment_specific_id` = `wles`.`id`
LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET( fs.id, wles.system_id )
LEFT JOIN wl_equipment_specific wes on wes.id = wlesa.equipment_specific_id
<where>
wlesa.equipment_specific_index_value = 'true'
wlesa.`status` = 1
<if
test=
"systemCode != null and systemCode != ''"
>
AND fs.code = #{systemCode}
AND FIND_IN_SET( #{systemCode}, wlesa.system_codes )>0
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND w
l
es.biz_org_code like concat (#{bizOrgCode},'%')
AND wes.biz_org_code like concat (#{bizOrgCode},'%')
</if>
</where>
</select>
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
c88d394f
...
...
@@ -2556,17 +2556,16 @@
a.`code`
FROM
(
SELECT
wed
.`name` AS equipName,
wed.equipment_
id AS equipmentId,
wed
.`code` AS `code`
SELECT
eq
.`name` AS equipName,
eq.
id AS equipmentId,
eq
.`code` AS `code`
FROM
wl_equipment_detail wed
LEFT JOIN wl_equipment_specific wes ON wed.id = wes.equipment_detail_id
wl_equipment_specific wes
LEFT JOIN wl_equipment_detail wed ON wed.id = wes.equipment_detail_id
LEFT JOIN wl_equipment eq on eq.id = wed.equipment_id
WHERE
FIND_IN_SET( #{id}, wes.system_id ) > 0
GROUP BY
wed.equipment_id
) a
LEFT JOIN wl_equipment_specific_alarm wesa ON wesa.equipment_id = a.equipmentId
AND wesa.`status` = 1
...
...
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