Commit e4c8239d0268c0c9d2906caf8084be6f5ab48ca4
1 parent
99a9395e
1.解决车辆换线后可能存在第一个班次无法正常执行的问题
Showing
1 changed file
with
5 additions
and
0 deletions
src/main/java/com/bsth/data/schedule/DayOfSchedule.java
| ... | ... | @@ -298,6 +298,7 @@ public class DayOfSchedule { |
| 298 | 298 | remList.add(sch); |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | + Set<String> codes = new HashSet<>(); | |
| 301 | 302 | for (ScheduleRealInfo sch : remList) { |
| 302 | 303 | if (null != sch) { |
| 303 | 304 | nbbmScheduleMap.remove(sch.getClZbh(), sch); |
| ... | ... | @@ -309,8 +310,12 @@ public class DayOfSchedule { |
| 309 | 310 | |
| 310 | 311 | //清除车辆 ——> 执行班次对照 |
| 311 | 312 | carExecutePlanMap.remove(sch.getClZbh()); |
| 313 | + codes.add(sch.getClZbh()); | |
| 312 | 314 | } |
| 313 | 315 | } |
| 316 | + for (String code : codes) { | |
| 317 | + reCalcExecPlan(code); | |
| 318 | + } | |
| 314 | 319 | //清理计划排班 |
| 315 | 320 | schedulePlanMap.remove(lineCode); |
| 316 | 321 | ... | ... |