ATS进路排列逻辑,已经或正在排列的进路不再重复排列
This commit is contained in:
parent
daf2d16cb7
commit
5ea8b122eb
@ -47,9 +47,11 @@ public class AtsRouteSettingService {
|
|||||||
// 执行进路排列
|
// 执行进路排列
|
||||||
for (TrainRoute trainRoute : waitSetList) {
|
for (TrainRoute trainRoute : waitSetList) {
|
||||||
Route route = trainRoute.getRoute();
|
Route route = trainRoute.getRoute();
|
||||||
|
if (!route.isSetting() && !route.isLock()) {
|
||||||
this.ciApiService.settingRoute(simulation, route.getCode());
|
this.ciApiService.settingRoute(simulation, route.getCode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private List<TrainRoute> queryWaitSettingRoutes(Simulation simulation, List<TrainInfo> trainList) {
|
private List<TrainRoute> queryWaitSettingRoutes(Simulation simulation, List<TrainInfo> trainList) {
|
||||||
SimulationDataRepository repository = simulation.getRepository();
|
SimulationDataRepository repository = simulation.getRepository();
|
||||||
|
Loading…
Reference in New Issue
Block a user