Commit 7ea1b9a9 authored by lisong's avatar lisong

修改bug

parent 2d074a2c
...@@ -5568,7 +5568,7 @@ ...@@ -5568,7 +5568,7 @@
wle.`code`, wle.`code`,
( (
CASE CASE
( SELECT count(*) FROM wl_equipment_specific_alarm wesa WHERE wesa.equipment_specific_id = spe.id AND STATUS = 1 ) ( SELECT count(*) FROM wl_equipment_specific_alarm wesa WHERE wesa.equipment_specific_id in (SELECT id from wl_equipment_specific sp where sp.equipment_code = wle.code) AND STATUS = 1 )
WHEN 0 THEN WHEN 0 THEN
'正常' ELSE '异常' '正常' ELSE '异常'
END END
...@@ -5595,7 +5595,7 @@ ...@@ -5595,7 +5595,7 @@
spe.id, spe.id,
spe.`name`, spe.`name`,
spe.`code`, spe.`code`,
IFNULL( spe.realtime_iot_index_name, '--' ) 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,
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,
......
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