Commit f97a4f39 authored by chenzhao's avatar chenzhao

大屏 管网压力问题描述补全

parent 86f28452
...@@ -1528,7 +1528,7 @@ ...@@ -1528,7 +1528,7 @@
wlesa.emergency_level_describe AS emergencyLevelDescribe, wlesa.emergency_level_describe AS emergencyLevelDescribe,
fs.NAME AS systemName fs.NAME AS systemName
FROM FROM
wl_equipment_specific_alarm wlesa wl_equipment_specific_alarm_log wlesa
LEFT JOIN wl_equipment_specific wes ON wes.id = wlesa.equipment_specific_id LEFT JOIN wl_equipment_specific wes ON wes.id = wlesa.equipment_specific_id
LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET(fs.id, wlesa.system_ids) LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET(fs.id, wlesa.system_ids)
<where> <where>
...@@ -1555,16 +1555,16 @@ ...@@ -1555,16 +1555,16 @@
and wlesa.equipment_specific_name like concat('%', #{name},'%') and wlesa.equipment_specific_name like concat('%', #{name},'%')
</if> </if>
<if test="cleanStatus != null and cleanStatus != '' and cleanStatus == 2"> <if test="cleanStatus != null and cleanStatus != '' and cleanStatus == 2">
and wlesa.status = 1 and wlesa.clean_time IS NULL
</if> </if>
<if test="cleanStatus != null and cleanStatus != '' and cleanStatus == 1"> <if test="cleanStatus != null and cleanStatus != '' and cleanStatus == 1">
and wlesa.status = 0 and wlesa.clean_time IS NOT NULL
</if> </if>
<if test="handleStatus != null and handleStatus != '' and handleStatus == 2"> <if test="handleStatus != null and handleStatus != '' and handleStatus == 2">
and wlesa.recovery_date IS NULL and wlesa.confirm_type IS NULL
</if> </if>
<if test="handleStatus != null and handleStatus != '' and handleStatus == 1"> <if test="handleStatus != null and handleStatus != '' and handleStatus == 1">
and wlesa.recovery_date IS NOT NULL and wlesa.confirm_type IS NOT NULL
</if> </if>
<if test="types != null"> <if test="types != null">
<foreach collection="types" index="index" item="item" open="and (" separator=" OR " close=")"> <foreach collection="types" index="index" item="item" open="and (" separator=" OR " close=")">
......
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