Commit d843e30c authored by litengwei's avatar litengwei

Merge remote-tracking branch 'origin/develop_dl_plan6_temp' into develop_dl_plan6_temp

parents ca726a4f bbc301b3
...@@ -932,18 +932,14 @@ ...@@ -932,18 +932,14 @@
( (
SELECT SELECT
COUNT( COUNT(
wespa.equipment_specific_id
wespa.equipment_specific_id
) )
FROM FROM
wl_equipment_specific_alarm_log wespa wl_equipment_specific_alarm_log wespa
WHERE WHERE
wespa.equipment_specific_index_key LIKE concat('%', 'FireAlarm') wespa.create_date BETWEEN #{startDate}
AND wespa.equipment_specific_index_value = 'true'
AND wespa.create_date BETWEEN #{startDate}
AND #{endDate} AND #{endDate}
AND wespa.equipment_id = (SELECT we.id FROM wl_equipment we WHERE we.category_id = (SELECT wec.id FROM wl_equipment_category wec WHERE wec.code = '92010600' ) ) AND wespa.equipment_id in (SELECT we.id FROM wl_equipment we WHERE we.category_id = (SELECT wec.id FROM wl_equipment_category wec WHERE wec.code = '92010600' ) )
<foreach collection="list" open="and (" close=")" item="code" index="index" separator="or"> <foreach collection="list" open="and (" close=")" item="code" index="index" separator="or">
wespa.system_codes like concat('%',#{code},'%') wespa.system_codes like concat('%',#{code},'%')
</foreach> </foreach>
...@@ -951,18 +947,13 @@ ...@@ -951,18 +947,13 @@
( (
SELECT SELECT
COUNT( COUNT(
wespa.equipment_specific_id
wespa.equipment_specific_id
) )
FROM FROM
wl_equipment_specific_alarm_log wespa wl_equipment_specific_alarm_log wespa
WHERE WHERE wespa.create_date BETWEEN #{startDate}
wespa.equipment_specific_index_key LIKE concat('%', 'FireAlarm')
AND wespa.equipment_specific_index_value = 'true'
AND wespa.create_date BETWEEN #{startDate}
AND #{endDate} AND #{endDate}
AND wespa.equipment_id = (SELECT we.id FROM wl_equipment we WHERE we.category_id = (SELECT wec.id FROM wl_equipment_category wec WHERE wec.code = '92010800' ) ) AND wespa.equipment_id in (SELECT we.id FROM wl_equipment we WHERE we.category_id = (SELECT wec.id FROM wl_equipment_category wec WHERE wec.code = '92010800' ) )
<foreach collection="list" open="and (" close=")" item="code" index="index" separator="or"> <foreach collection="list" open="and (" close=")" item="code" index="index" separator="or">
wespa.system_codes like concat('%',#{code},'%') wespa.system_codes like concat('%',#{code},'%')
</foreach> </foreach>
...@@ -970,18 +961,14 @@ ...@@ -970,18 +961,14 @@
( (
SELECT SELECT
COUNT( COUNT(
wespa.equipment_specific_id
wespa.equipment_specific_id
) )
FROM FROM
wl_equipment_specific_alarm_log wespa wl_equipment_specific_alarm_log wespa
WHERE WHERE
wespa.equipment_specific_index_key LIKE concat('%', 'Shield') wespa.create_date BETWEEN #{startDate}
AND wespa.equipment_specific_index_value = 'true'
AND wespa.create_date BETWEEN #{startDate}
AND #{endDate} AND #{endDate}
AND wespa.equipment_id = (SELECT we.id FROM wl_equipment we WHERE we.category_id = (SELECT wec.id FROM wl_equipment_category wec WHERE wec.code = '92010500' ) ) AND wespa.equipment_id in (SELECT we.id FROM wl_equipment we WHERE we.category_id = (SELECT wec.id FROM wl_equipment_category wec WHERE wec.code = '92010500' ) )
<foreach collection="list" open="and (" close=")" item="code" index="index" separator="or"> <foreach collection="list" open="and (" close=")" item="code" index="index" separator="or">
wespa.system_codes like concat('%',#{code},'%') wespa.system_codes like concat('%',#{code},'%')
</foreach> </foreach>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment