定时任务问题修复

This commit is contained in:
zhuxinyu
2023-04-24 10:17:05 +08:00
parent c83deaedd7
commit 8e6c94c58d
2 changed files with 3 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ public class DeviceAbnormaStatisticsServiceImpl implements DeviceAbnormalStatist
topMsg.setOfftimeFlag(0);
topMsg.setComOutCount(1);
topMsg.setComOutDescription(DateUtil.beginOfDay(DateUtil.parse(param.getTime()))+""+devEntry.getValue().get(0).getUpdateTime());
} else if (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(devEntry.getValue().get(0).getUpdateTime()).before(DateUtil.beginOfDay(DateUtil.parse(param.getTime())))) {
} else {
topMsg.setOfftimeFlag(1);
topMsg.setComOutCount(0);
}