diff --git a/src/main/java/club/joylink/rtss/services/training/generatornew/base/SectionGeneratorNew.java b/src/main/java/club/joylink/rtss/services/training/generatornew/base/SectionGeneratorNew.java index 167163653..5f26c4c73 100644 --- a/src/main/java/club/joylink/rtss/services/training/generatornew/base/SectionGeneratorNew.java +++ b/src/main/java/club/joylink/rtss/services/training/generatornew/base/SectionGeneratorNew.java @@ -61,6 +61,9 @@ public class SectionGeneratorNew implements GeneratorNew { if (section.isCross() && !sectionTypes.contains(BusinessConsts.Section.SectionType.Type05)) { continue; } + if (section.getParent() != null && section.getParent().isCross()) { + continue; + } } switch (Operation.Type.valueOf(operateDefinitionVO.getOperateType())) { diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/data/map/Section.java b/src/main/java/club/joylink/rtss/simulation/cbtc/data/map/Section.java index 8637ac02f..a4dff0125 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/data/map/Section.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/data/map/Section.java @@ -510,7 +510,7 @@ public class Section extends DelayUnlockDevice { * @return */ public boolean isLogicSection() { - return !this.physical && !this.axleCounter && Objects.nonNull(this.parent); + return !this.physical && !this.axleCounter && !this.isCross() && Objects.nonNull(this.parent); } /**