【回库BUG】

This commit is contained in:
weizhihong 2023-06-06 17:01:37 +08:00
parent 4de0b5e0e8
commit 8cb9d9bb84
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ public class ATPService {
public void inbound(Simulation simulation, String groupNumber) {
VirtualRealityTrain train = simulation.getRepository().getOnlineTrainBy(groupNumber);
Section headSection = train.getHeadPosition().getSection();
if (headSection.isTurnBackTrack() && train.isStop()) { //列车停在折返
if (headSection.isTransferTrack() && train.isStop()) { //列车停在转换
SimulationDataRepository repository = simulation.getRepository();
TrainInfo trainInfo = repository.getSupervisedTrainByGroup(train.getGroupNumber());
List<RoutePath> routePathList = repository.queryRoutePathsByEnd(headSection);