ATS进路排列逻辑,已经或正在排列的进路不再重复排列

This commit is contained in:
joylink_zhangsai 2020-12-21 17:59:42 +08:00
parent daf2d16cb7
commit 5ea8b122eb

View File

@ -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();