Commit e8f5a912774a471efdf0de6b259b79d27f859339
1 parent
75cbfad5
update...
Showing
1 changed file
with
6 additions
and
2 deletions
src/main/java/com/bsth/data/schedule/DayOfSchedule.java
| ... | ... | @@ -148,7 +148,7 @@ public class DayOfSchedule implements CommandLineRunner { |
| 148 | 148 | //dataRecovery(); |
| 149 | 149 | |
| 150 | 150 | //翻班线程 |
| 151 | -// Application.mainServices.scheduleWithFixedDelay(scheduleRefreshThread, 15, 240, TimeUnit.SECONDS); | |
| 151 | + Application.mainServices.scheduleWithFixedDelay(scheduleRefreshThread, 15, 240, TimeUnit.SECONDS); | |
| 152 | 152 | //入库 |
| 153 | 153 | // Application.mainServices.scheduleWithFixedDelay(schedulePstThread, 60, 30, TimeUnit.SECONDS); |
| 154 | 154 | //班次误点扫描 |
| ... | ... | @@ -334,12 +334,16 @@ public class DayOfSchedule implements CommandLineRunner { |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | 336 | //清理路牌对照 |
| 337 | + List<String> lprms = new ArrayList<>(); | |
| 337 | 338 | Set<String> lps = lpScheduleMap.keySet(); |
| 338 | 339 | for(String lp : lps){ |
| 339 | 340 | if(lp.indexOf(lineCode + "_") != -1) |
| 340 | - lpScheduleMap.removeAll(lp); | |
| 341 | + lprms.add(lp); | |
| 341 | 342 | } |
| 342 | 343 | |
| 344 | + for(String lp : lprms) | |
| 345 | + lpScheduleMap.removeAll(lp); | |
| 346 | + | |
| 343 | 347 | logger.info(lineCode + "排班清理 " + count); |
| 344 | 348 | } |
| 345 | 349 | ... | ... |