diff --git a/zfipc-server/zfipc-datasyn/src/main/java/com/inspur/datasyn/modbus/IpcDataProcess.java b/zfipc-server/zfipc-datasyn/src/main/java/com/inspur/datasyn/modbus/IpcDataProcess.java index 4dc778e..f4d10bf 100644 --- a/zfipc-server/zfipc-datasyn/src/main/java/com/inspur/datasyn/modbus/IpcDataProcess.java +++ b/zfipc-server/zfipc-datasyn/src/main/java/com/inspur/datasyn/modbus/IpcDataProcess.java @@ -204,7 +204,9 @@ public class IpcDataProcess implements Runnable { Map fields = new TreeMap(); List alarmRecordList = new ArrayList<>(); + //TODO 停机运维状态数据不储存 + tags.put("status", "1");//正常运行 0:停机 1:正常运行 2:待机 3:试运行 // 系统电流 fields.put("sys_cur", (float) 0 + Math.random()); // 系统流量 diff --git a/zfipc-server/zfipc-system/src/main/resources/mapper/industrial/IpcAlarmRecordMapper.xml b/zfipc-server/zfipc-system/src/main/resources/mapper/industrial/IpcAlarmRecordMapper.xml index 1f4cfd9..ffcba84 100644 --- a/zfipc-server/zfipc-system/src/main/resources/mapper/industrial/IpcAlarmRecordMapper.xml +++ b/zfipc-server/zfipc-system/src/main/resources/mapper/industrial/IpcAlarmRecordMapper.xml @@ -74,6 +74,7 @@ and #{params.endTime} + order by a.alarm_time desc