Commit e8f5a912774a471efdf0de6b259b79d27f859339

Authored by 潘钊
1 parent 75cbfad5

update...

src/main/java/com/bsth/data/schedule/DayOfSchedule.java
@@ -148,7 +148,7 @@ public class DayOfSchedule implements CommandLineRunner { @@ -148,7 +148,7 @@ public class DayOfSchedule implements CommandLineRunner {
148 //dataRecovery(); 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 // Application.mainServices.scheduleWithFixedDelay(schedulePstThread, 60, 30, TimeUnit.SECONDS); 153 // Application.mainServices.scheduleWithFixedDelay(schedulePstThread, 60, 30, TimeUnit.SECONDS);
154 //班次误点扫描 154 //班次误点扫描
@@ -334,12 +334,16 @@ public class DayOfSchedule implements CommandLineRunner { @@ -334,12 +334,16 @@ public class DayOfSchedule implements CommandLineRunner {
334 } 334 }
335 335
336 //清理路牌对照 336 //清理路牌对照
  337 + List<String> lprms = new ArrayList<>();
337 Set<String> lps = lpScheduleMap.keySet(); 338 Set<String> lps = lpScheduleMap.keySet();
338 for(String lp : lps){ 339 for(String lp : lps){
339 if(lp.indexOf(lineCode + "_") != -1) 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 logger.info(lineCode + "排班清理 " + count); 347 logger.info(lineCode + "排班清理 " + count);
344 } 348 }
345 349