Commit 9d17d331 authored by duanruiming's avatar duanruiming

[update] 增加异常处理

parent ea99c7de
...@@ -42,7 +42,7 @@ public class SignalStatusTask { ...@@ -42,7 +42,7 @@ public class SignalStatusTask {
// 运行状态、告警,5分钟一次 // 运行状态、告警,5分钟一次
@Scheduled(fixedRate = 1 * 60 * 1000) @Scheduled(fixedRate = 1 * 60 * 1000)
public void runningStatusAlarm() { public void runningStatusAlarm() throws Exception {
List<SignalStatusLogPO> signalStatusLogPOS = signalStatusService.runningStatusAlarm(); List<SignalStatusLogPO> signalStatusLogPOS = signalStatusService.runningStatusAlarm();
} }
...@@ -81,7 +81,7 @@ public class SignalStatusTask { ...@@ -81,7 +81,7 @@ public class SignalStatusTask {
} }
lightsStatusVO.setCycleCountDown(runModeTimeMap.get(crossIdStr)); lightsStatusVO.setCycleCountDown(runModeTimeMap.get(crossIdStr));
log.info("路口编号:{},控制剩余时长:{}", crossIdStr, runModeTimeMap.get(crossIdStr)); log.info("路口编号:{},控制剩余时长:{}", crossIdStr, runModeTimeMap.get(crossIdStr));
} else if (StringUtils.equals(lightsStatusVO.getRunMode(), "11")){ } else if (StringUtils.equals(lightsStatusVO.getRunMode(), "11")) {
runModeTimeMap.remove(crossIdStr); runModeTimeMap.remove(crossIdStr);
} }
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment