修改 设备状态

master
wangh 1 year ago
parent fa6431a7b8
commit c1b3d62880

@ -25,9 +25,9 @@
<select id="queryDeviceState" resultType="string">
SELECT top 1
case
when ID = 1 and DataType = 0 then '停机'
when ID = 1 and DataType = 1 then '运行'
when ID = 1 and DataType = 1 and ID = 2 and DataType = 1 then '故障'
when ID = 1 and DataType = 1 then '停机'
when ID = 1 and DataType = 0 then '运行'
when ID = 1 and DataType = 0 and ID = 2 and DataType = 0 then '故障'
end
FROM EEquipmentState
where PID = 7

Loading…
Cancel
Save