Commit 35b6a4df authored by duanruiming's avatar duanruiming

[update] 灯态正计时线程安全问题

parent 3daf5b89
...@@ -38,7 +38,7 @@ public class SignalStatusTask { ...@@ -38,7 +38,7 @@ public class SignalStatusTask {
private HkLightsStatusService hkLightsStatusService; private HkLightsStatusService hkLightsStatusService;
private static Map<String, List<LightsStatusVO>> lightStatusCache = new HashMap<>(); private static Map<String, List<LightsStatusVO>> lightStatusCache = new HashMap<>();
private static Map<String, Integer> runModeTimeMap = new HashMap(); private static final Map<String, Integer> runModeTimeMap = new ConcurrentHashMap<>();
// 运行状态、告警,5分钟一次 // 运行状态、告警,5分钟一次
@Scheduled(fixedRate = 1 * 60 * 1000) @Scheduled(fixedRate = 1 * 60 * 1000)
......
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