Commit b4b63d00 authored by duanruiming's avatar duanruiming

[update] 灯态数据结构修改

parent 7bead5b0
...@@ -124,9 +124,8 @@ public class SignalStatusTask { ...@@ -124,9 +124,8 @@ public class SignalStatusTask {
if (Objects.nonNull(lightsStatusVO) && Objects.equals(lightsStatusVO.getCrossId(), crossId)) { if (Objects.nonNull(lightsStatusVO) && Objects.equals(lightsStatusVO.getCrossId(), crossId)) {
calculateContolCountDown(crossId, lightsStatusVO); calculateContolCountDown(crossId, lightsStatusVO);
try { // 相同路口不同websocket统一发送灯态 try { // 相同路口不同websocket统一发送灯态
// 新版本,测试,未更新 List<LightsStatusVO2> listResult = lightsStatusVOCopy(lightsStatusVOS);
//List<LightsStatusVO2> listResult = lightsStatusVOCopy(lightsStatusVOS); String json = mapper.writeValueAsString(listResult);
String json = mapper.writeValueAsString(lightsStatusVOS);
for (Map.Entry<String, RealTimeDataWebSocket> socketEntry : value) { for (Map.Entry<String, RealTimeDataWebSocket> socketEntry : value) {
String crossIdStr = socketEntry.getKey(); String crossIdStr = socketEntry.getKey();
RealTimeDataWebSocket webSocket = socketEntry.getValue(); RealTimeDataWebSocket webSocket = socketEntry.getValue();
......
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