ytfl
2025-08-19 b7951bdbb8925131cbc76be4902fcef0e88d0506
src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -208,7 +208,15 @@
                    }
                }
                if (System.currentTimeMillis() - crnProtocol.getDeviceDataLog() > 1000 * 5) {
                if (crnProtocol.getAlarm() > 0) {
                    crnProtocol.setLastCommandTime(-1L);
                }
                if (crnProtocol.getAlarm() == 0 && crnProtocol.getLastCommandTime() == -1) {
                    crnProtocol.setLastCommandTime(System.currentTimeMillis());
                }
                if (System.currentTimeMillis() - crnProtocol.getDeviceDataLog() > 1000 * 1) {
                    //采集时间超过5s,保存一次数据记录
                    //保存数据记录
                    DeviceDataLogService deviceDataLogService = SpringUtils.getBean(DeviceDataLogService.class);