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
4e01f708
Commit
4e01f708
authored
Apr 01, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改水系统4小查询脚本
parent
1b8d4c86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
110 additions
and
52 deletions
+110
-52
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+110
-52
No files found.
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
4e01f708
...
@@ -1253,61 +1253,119 @@
...
@@ -1253,61 +1253,119 @@
</select>
</select>
<select
id=
"fireWaterSysHydrant"
resultType=
"java.util.Map"
>
<select
id=
"fireWaterSysHydrant"
resultType=
"java.util.Map"
>
SELECT
SELECT
xhsanhj,
xhsanhj,
xhsangz,
xhsangz,
xhsanpb,
xhsanpb,
ABS(xhsan - xhsanhj- xhsangz-xhsanpb) as xhszc,
xhszc,
xhsan
xhsan
from
FROM
(select
(
(SELECT
SELECT
count(1)
(
FROM `wl_equipment_specific_index` s
SELECT
where s.equipment_index_key = 'FAS_FireHydrantButton_FireAlarm'
count(1)
and s.`value` = 'true') as xhsanhj,
FROM
(SELECT
`wl_equipment_specific_index` s
count(1)
WHERE
FROM `wl_equipment_specific_index` s
s.equipment_index_key = 'FAS_FireHydrantButton_FireAlarm'
where s.equipment_index_key = 'FAS_FireHydrantButton_Fault'
AND s.`value` = 'true'
and s.`value` = 'true') as xhsangz,
) AS xhsanhj,
(SELECT
(
count(1)
SELECT
FROM `wl_equipment_specific_index` s
count(1)
where s.equipment_index_key = 'FAS_FireHydrantButton_Shield'
FROM
and s.`value` = 'true') as xhsanpb,
`wl_equipment_specific_index` s
(SELECT
WHERE
count(1)
s.equipment_index_key = 'FAS_FireHydrantButton_Fault'
from
AND s.`value` = 'true'
`wl_equipment_specific_index` si
) AS xhsangz,
where
(
si.equipment_index_key = 'FAS_FireHydrantButton_FireAlarm') as xhsan
SELECT
) as hydrant
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_FireHydrantButton_Shield'
AND s.`value` = 'true'
) AS xhsanpb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` si
WHERE
si.equipment_index_key = 'FAS_FireHydrantButton_FireAlarm'
) AS xhsan,
(
SELECT
count(
DISTINCT equipment_specific_id
)
FROM
`wl_equipment_specific_index` s
WHERE
(
s.`value` = 'false'
OR s.`value` IS NULL
)
AND (
s.equipment_index_key = 'FAS_FireHydrantButton_FireAlarm'
OR s.equipment_index_key = 'FAS_FireHydrantButton_Fault'
OR s.equipment_index_key = 'FAS_FireHydrantButton_Shield'
)
) AS xhszc
) AS hydrant
</select>
</select>
<select
id=
"fireWaterSysCollectingDevice"
resultType=
"java.util.Map"
>
<select
id=
"fireWaterSysCollectingDevice"
resultType=
"java.util.Map"
>
SELECT
SELECT
sbfcjzzyc,
sbfcjzzyc,
sbfcjzzbs,
sbfcjzzbs,
(sbfcjzz-sbfcjzzyc-sbfcjzzbs) as sbfcjzzzc,
sbfcjzzzc,
sbfcjzz
sbfcjzz
from
FROM
(select
(
(SELECT
SELECT
count(1)
(
FROM `wl_equipment_specific_index` s
SELECT
where s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal'
count(1)
and s.`value` = 'true') as sbfcjzzyc,
FROM
(SELECT
`wl_equipment_specific_index` s
count(1)
WHERE
FROM `wl_equipment_specific_index` s
s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal'
where s.equipment_index_key = 'FHS_CollectingDevice_DeviceLock'
AND s.`value` = 'true'
and s.`value` = 'true') as sbfcjzzbs,
) AS sbfcjzzyc,
(SELECT
(
count(1)
SELECT
from
count(1)
`wl_equipment_specific_index` si
FROM
where
`wl_equipment_specific_index` s
si.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal') as sbfcjzz
WHERE
) as collectingDevice
s.equipment_index_key = 'FHS_CollectingDevice_DeviceLock'
AND s.`value` = 'true'
) AS sbfcjzzbs,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` si
WHERE
si.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal'
) AS sbfcjzz,
(
SELECT
count(
DISTINCT equipment_specific_id
)
FROM
`wl_equipment_specific_index` s
WHERE
(
s.`value` = 'false'
OR s.`value` IS NULL
)
AND s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal'
) AS sbfcjzzzc
) AS collectingDevice
</select>
</select>
<select
id=
"fireWaterSysWaterPump"
resultType=
"java.util.Map"
>
<select
id=
"fireWaterSysWaterPump"
resultType=
"java.util.Map"
>
select
select
...
...
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