Commit 1b4bc0ad authored by 张森's avatar 张森

消防泵的信号显示不正确

parent d1fc91f6
......@@ -6614,7 +6614,8 @@
spe.id,
spe.`name`,
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,
ei.is_alarm AS type,
IFNULL( spe.realtime_iot_index_value, '--' ) AS realtimeValue,
......@@ -6623,6 +6624,7 @@
IFNULL( spe.realtime_iot_index_update_date, '--' ) AS updateDate
FROM
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_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 )
......
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