Commit 9ebbc1b4 authored by duanruiming's avatar duanruiming

[update] 相位倒计时优化2

parent 3b0b1adc
...@@ -226,8 +226,8 @@ public class DTSignalStatusServiceImpl implements SignalStatusService { ...@@ -226,8 +226,8 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
lightsStatusVO.setCyclePhaseCountDown(realRemainTime); lightsStatusVO.setCyclePhaseCountDown(realRemainTime);
} else { } else {
PhaseStageInfoPojo nextPhaseStageInfoPojo = null; PhaseStageInfoPojo nextPhaseStageInfoPojo = null;
if (l + 1 <= phaseStageInfoPojos.size()) { if (l< phaseStageInfoPojos.size()) {
nextPhaseStageInfoPojo = phaseStageInfoPojos.get(l + 1); nextPhaseStageInfoPojo = phaseStageInfoPojos.get(l);
} else { } else {
nextPhaseStageInfoPojo = phaseStageInfoPojos.get(0); nextPhaseStageInfoPojo = phaseStageInfoPojos.get(0);
} }
......
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