【回库匹配逻辑】

This commit is contained in:
weizhihong 2023-06-07 16:21:15 +08:00
parent bf7f8510be
commit 4937d22a0d
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ public class ATPService {
SimulationDataRepository repository = simulation.getRepository();
TrainInfo trainInfo = repository.getSupervisedTrainByGroup(train.getGroupNumber());
List<RoutePath> routePathList = repository.queryRoutePathsByEnd(headSection);
if (routePathList.get(0).isRight() == trainInfo.getRight()) { //准备回库
if (routePathList.stream().anyMatch(routePath -> routePath.isRight() == trainInfo.getRight())) { //准备回库
trainInfo.finishPlanPrepareInbound();
}
}