diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/CI/service/RouteService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/CI/service/RouteService.java index b5ef4417f..e8ee65f76 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/CI/service/RouteService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/CI/service/RouteService.java @@ -60,6 +60,11 @@ public class RouteService { } // 进路区段是否故障占用 for (Section section : route.getSectionList()) { + for (int i = 0; i < 3; i++) { + if (section.getParent() == null || section.isAxleCounter()) + break; + section = section.getParent(); + } if (Section.AxleFault.FAULT.equals(section.getFault())) { return new Route.CheckFailMessage(Route.CheckFailReason.SectionFaultOccupied, section); }