|
|
|
@ -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
|
|
|
|
|