Commit 21f89c65 authored by 张森's avatar 张森

消防泵信号问题处理

parent fa8c6bdd
...@@ -6569,7 +6569,8 @@ ...@@ -6569,7 +6569,8 @@
spe.id, spe.id,
spe.`name`, spe.`name`,
spe.`code`, spe.`code`,
CASE when 'false' = spe.realtime_iot_index_value or spe.realtime_iot_index_value is null or spe.realtime_iot_index_value = '' then '正常' ELSE spe.realtime_iot_index_name END as status, <!-- CASE when 'false' = spe.realtime_iot_index_value or spe.realtime_iot_index_value is null or spe.realtime_iot_index_value = '' then '正常' ELSE spe.realtime_iot_index_name END as status,-->
CASE when wei.`value` is null or wei.`value` = '' then '正常' ELSE wei.equipment_index_name END as status,
wle.shbz_img shbzImg, wle.shbz_img shbzImg,
ei.is_alarm AS type, ei.is_alarm AS type,
IFNULL( spe.realtime_iot_index_value, '--' ) AS realtimeValue, IFNULL( spe.realtime_iot_index_value, '--' ) AS realtimeValue,
...@@ -6578,6 +6579,7 @@ ...@@ -6578,6 +6579,7 @@
IFNULL( spe.realtime_iot_index_update_date, '--' ) AS updateDate IFNULL( spe.realtime_iot_index_update_date, '--' ) AS updateDate
FROM FROM
wl_equipment_specific AS spe wl_equipment_specific AS spe
LEFT JOIN (select equipment_specific_id, `value`, equipment_index_name from wl_equipment_specific_index where value = 'true' and is_alarm = 1 group by equipment_specific_id order by update_date desc) wei on wei.equipment_specific_id = spe.id
LEFT JOIN wl_equipment_index ei ON spe.realtime_iot_index_id = ei.id LEFT JOIN wl_equipment_index ei ON spe.realtime_iot_index_id = ei.id
LEFT JOIN wl_warehouse_structure ws ON spe.warehouse_structure_id = ws.id LEFT JOIN wl_warehouse_structure ws ON spe.warehouse_structure_id = ws.id
LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET( fs.id, spe.system_id ) LEFT JOIN f_fire_fighting_system fs ON FIND_IN_SET( fs.id, spe.system_id )
......
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