【进路解锁逻辑修改】

This commit is contained in:
weizhihong 2023-06-01 15:38:37 +08:00
parent dad1bfc982
commit ec6e78dbcb
1 changed files with 1 additions and 4 deletions

View File

@ -196,10 +196,7 @@ public class CiLogic {
// 进路首区段列车占用进路开始解锁
Section firstLogicSection = route.getFirstLogicSection();
if(route.getStart().isGuideAspect() && firstLogicSection.getAxleCounterSection().isFaultOccupied()) {
List<Section> sectionList = route.getStart().getApproachPathList().get(0).getSectionList();
if(!CollectionUtils.isEmpty(sectionList) && !sectionList.get(0).isNctOccupied()) {
trainUnlockStart(simulation, route);
}
log.debug(String.format("进路【%s(%s)】引导占用中,列车通过后请人工解锁", route.getName(), route.getCode()));
} else{
SimulationDataRepository repository = simulation.getRepository();
if (repository.isTrainHeadOccupy(firstLogicSection)) {