From 07ff57162eb4eb0971ef11ccb3a0e1cce0410726 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Tue, 20 Dec 2022 14:48:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=9E=E8=AE=AD=E4=BF=A1=E5=8F=B7?= =?UTF-8?q?=E6=9C=BA=E8=AE=BE=E5=A4=87=E7=AD=9B=E9=80=89=E8=A7=84=E5=88=99?= =?UTF-8?q?=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../club/joylink/rtss/vo/training2/rule/MapDeviceRule.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/club/joylink/rtss/vo/training2/rule/MapDeviceRule.java b/src/main/java/club/joylink/rtss/vo/training2/rule/MapDeviceRule.java index 54a00b0e7..cc990ebd9 100644 --- a/src/main/java/club/joylink/rtss/vo/training2/rule/MapDeviceRule.java +++ b/src/main/java/club/joylink/rtss/vo/training2/rule/MapDeviceRule.java @@ -805,6 +805,9 @@ public enum MapDeviceRule { if (route.getStart().getStation() == null || route.getStart().getStation().isDepot()) { return false; } + if(!Objects.equals(route.getStart().getStation(), route.getInterlockStation())) { + return false; + } // 排除道岔默认单锁的进路 if (route.getSwitchList().stream().anyMatch(switchElement -> !switchElement.isNormal())) { return false;