Commit 4c057a9e authored by maoying's avatar maoying

Merge branch 'develop_dl_3.7.1.0' of http://36.40.66.175:5000/moa/amos-boot-biz…

Merge branch 'develop_dl_3.7.1.0' of http://36.40.66.175:5000/moa/amos-boot-biz into develop_dl_3.7.1.0
parents a2bace4f 8fb1a3fa
...@@ -1316,7 +1316,7 @@ ...@@ -1316,7 +1316,7 @@
</select> </select>
<select id="dailyMaintenance" resultType="java.util.Map"> <select id="dailyMaintenance" resultType="java.util.Map">
SELECT temp.total,temp.notReturned, temp.alarmEquipNum,(temp.alarmEquipNum - temp.notReturned) AS returned SELECT temp.total,temp.notReturned, temp.alarmEquipNum,(temp.alarmEquipNum - temp.notReturned) AS returned, temp.faultEquipNum
FROM( FROM(
select select
(SELECT (SELECT
...@@ -1334,6 +1334,11 @@ ...@@ -1334,6 +1334,11 @@
WHERE esa.org_code = #{orgCode} WHERE esa.org_code = #{orgCode}
and update_date between #{startTime} and #{endTime} and update_date between #{startTime} and #{endTime}
)AS alarmEquipNum, )AS alarmEquipNum,
(
SELECT COUNT(DISTINCT(esa.iot_code)) FROM wl_equipment_specific_alarm esa
WHERE esa.type = "BREAKDOWN"
and esa.equipment_specific_index_value = "true" and esa.`status`=true and esa.org_code = #{orgCode} and update_date between #{startTime} and #{endTime}
)AS faultEquipNum,
( (
SELECT COUNT(DISTINCT(esa.iot_code)) FROM wl_equipment_specific_alarm esa SELECT COUNT(DISTINCT(esa.iot_code)) FROM wl_equipment_specific_alarm esa
WHERE esa.org_code = #{orgCode} AND esa.equipment_specific_index_value = "true" WHERE esa.org_code = #{orgCode} AND esa.equipment_specific_index_value = "true"
......
...@@ -4184,18 +4184,9 @@ ...@@ -4184,18 +4184,9 @@
left join f_fire_fighting_system s on FIND_IN_SET(s.id,spec.system_id) left join f_fire_fighting_system s on FIND_IN_SET(s.id,spec.system_id)
where FIND_IN_SET( #{systemId},spec.system_id) AND equipment.is_iot = 1 where FIND_IN_SET( #{systemId},spec.system_id) AND equipment.is_iot = 1
GROUP BY code,s.id, name ORDER BY system_id, code ) a) as a1 GROUP BY code,s.id, name ORDER BY system_id, code ) a) as a1
) temp ) temp
LEFT JOIN LEFT JOIN
( (
SELECT temp.*, SELECT temp.*,
CASE CASE
WHEN wei.is_trend = 0 then "遥信" WHEN wei.is_trend = 0 then "遥信"
...@@ -4244,7 +4235,7 @@ ...@@ -4244,7 +4235,7 @@
WHERE FIND_IN_SET( #{systemId},spec.system_id) WHERE FIND_IN_SET( #{systemId},spec.system_id)
GROUP BY systemId,code,type_code GROUP BY systemId,code,type_code,spec_index.id
)temp LEFT JOIN wl_equipment_index wei on temp.equipment_index_id = wei.id )temp LEFT JOIN wl_equipment_index wei on temp.equipment_index_id = wei.id
)temp1 on temp.system_id = temp1.systemId and temp.code = temp1.code )temp1 on temp.system_id = temp1.systemId and temp.code = temp1.code
......
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