From 657c3da35fcc20b6db7a2348929d0913cc1ca53d Mon Sep 17 00:00:00 2001 From: zhangjunwen Date: Tue, 16 Apr 2024 18:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95bug=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=92=8C=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=8F=A3=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/inspur/datasyn/modbus/IpcDataProcess.java | 2 ++ .../resources/mapper/industrial/IpcAlarmRecordMapper.xml | 1 + zfipc-ui/src/views/dataLog/index.vue | 4 ++++ zfipc-ui/src/views/warn/alarm/index.vue | 4 ++-- zfipc-ui/src/views/zf/cydg/yxjk.vue | 2 +- zfipc-ui/src/views/zf/zgdgTop/index.vue | 6 +++--- 6 files changed, 13 insertions(+), 6 deletions(-) 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