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
041c4400
Commit
041c4400
authored
Apr 01, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_station' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_station
parents
dfcc6fa5
4e01f708
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 @
041c4400
...
...
@@ -1253,61 +1253,119 @@
</select>
<select
id=
"fireWaterSysHydrant"
resultType=
"java.util.Map"
>
SELECT
xhsanhj,
xhsangz,
xhsanpb,
ABS(xhsan - xhsanhj- xhsangz-xhsanpb) as xhszc,
xhsan
from
(select
(SELECT
count(1)
FROM `wl_equipment_specific_index` s
where s.equipment_index_key = 'FAS_FireHydrantButton_FireAlarm'
and s.`value` = 'true') as xhsanhj,
(SELECT
count(1)
FROM `wl_equipment_specific_index` s
where s.equipment_index_key = 'FAS_FireHydrantButton_Fault'
and s.`value` = 'true') as xhsangz,
(SELECT
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
) as hydrant
xhsanhj,
xhsangz,
xhsanpb,
xhszc,
xhsan
FROM
(
SELECT
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_FireHydrantButton_FireAlarm'
AND s.`value` = 'true'
) AS xhsanhj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_FireHydrantButton_Fault'
AND s.`value` = 'true'
) AS xhsangz,
(
SELECT
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
id=
"fireWaterSysCollectingDevice"
resultType=
"java.util.Map"
>
SELECT
sbfcjzzyc,
sbfcjzzbs,
(sbfcjzz-sbfcjzzyc-sbfcjzzbs) as sbfcjzzzc,
sbfcjzz
from
(select
(SELECT
count(1)
FROM `wl_equipment_specific_index` s
where s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal'
and s.`value` = 'true') as sbfcjzzyc,
(SELECT
count(1)
FROM `wl_equipment_specific_index` s
where 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
) as collectingDevice
sbfcjzzyc,
sbfcjzzbs,
sbfcjzzzc,
sbfcjzz
FROM
(
SELECT
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal'
AND s.`value` = 'true'
) AS sbfcjzzyc,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
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
id=
"fireWaterSysWaterPump"
resultType=
"java.util.Map"
>
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