Commit 0c39c8cb authored by duanruiming's avatar duanruiming

[update] UTC模拟灯态优化,优化初始相位

parent 7e048636
...@@ -364,8 +364,12 @@ public class SignalStatus4StaticSchemeTask { ...@@ -364,8 +364,12 @@ public class SignalStatus4StaticSchemeTask {
} }
} }
} }
if (StringUtils.equalsIgnoreCase("0", nextPhaseId)) {
lightsStatusVO.setPhaseId(crossPhasePOS.get(0).getPhaseNo());
} else {
lightsStatusVO.setPhaseId(nextPhaseId);
}
} }
lightsStatusVO.setPhaseId(nextPhaseId);
lightsStatusVO.setCyclePhaseCountDown(nextPhaseTime); lightsStatusVO.setCyclePhaseCountDown(nextPhaseTime);
} else { } else {
lightsStatusVO.setCyclePhaseCountDown(lightsStatusVO.getCyclePhaseCountDown() - 1); lightsStatusVO.setCyclePhaseCountDown(lightsStatusVO.getCyclePhaseCountDown() - 1);
......
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