Commit afcf3f82 authored by duanruiming's avatar duanruiming

[update] 实时推送灯态时,未建立socket连接,默认控制模式

parent dd30f23b
......@@ -63,8 +63,13 @@ public class HkRunningStatusServiceImpl implements HkRunningStatusService {
// }
Map<String, String> controlModeMap = Constants.controlModeMap;
Map<String, Integer> runModeControlMap = Constants.runModeControlMap;
if (!controlModeMap.isEmpty() && !runModeControlMap.isEmpty()) {
String currentControl = controlModeMap.get(baseCrossInfo.getCrossId());
if (!runModeControlMap.isEmpty()) {
String currentControl = null;
if (controlModeMap.isEmpty()) {
currentControl = "11";
} else {
currentControl = controlModeMap.get(baseCrossInfo.getCrossId());
}
po.setControlType(runModeControlMap.get(currentControl));
}
result.add(po);
......
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