Commit 948fe4d9 authored by 张森's avatar 张森

产生装置状态取运行和停止

parent 7388fb64
...@@ -1812,6 +1812,7 @@ ...@@ -1812,6 +1812,7 @@
wes.realtime_iot_index_update_date realtiemIotIndexUpdateDate, wes.realtime_iot_index_update_date realtiemIotIndexUpdateDate,
wes.realtime_iot_index_id realtimeIotIndexId, wes.realtime_iot_index_id realtimeIotIndexId,
wes.equip_status equipStatus, wes.equip_status equipStatus,
if( max( CASE WHEN b.equipment_index_key = 'CAFS_FoamProductionDevice_Run' THEN `value` END ) = 'true', '运行', '停止' ) AS indexStatus,
ifnull( max( CASE WHEN b.equipment_index_key = 'CAFS_FoamProductionDevice_OutletFlow' THEN `value` END ), '' ) AS outletFlow, ifnull( max( CASE WHEN b.equipment_index_key = 'CAFS_FoamProductionDevice_OutletFlow' THEN `value` END ), '' ) AS outletFlow,
ifnull( max( CASE WHEN b.equipment_index_key = 'CAFS_FoamProductionDevice_OutletFlow' THEN `unit` END ), '' ) AS outletFlowUnit, ifnull( max( CASE WHEN b.equipment_index_key = 'CAFS_FoamProductionDevice_OutletFlow' THEN `unit` END ), '' ) AS outletFlowUnit,
ifnull( max( CASE WHEN b.equipment_index_key = 'CAFS_FoamProductionDevice_OutletPressure' THEN `value` END ), '' ) AS outletPressure, ifnull( max( CASE WHEN b.equipment_index_key = 'CAFS_FoamProductionDevice_OutletPressure' THEN `value` END ), '' ) AS outletPressure,
......
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