src/main/java/com/zy/core/thread/SiemensCrnThread.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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);