From 5dbba35cdfcd8a2cb83b00af6e4e70c8a52964c6 Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Fri, 28 May 2021 17:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=B4=E7=A0=81=E8=BD=A6?= =?UTF-8?q?=E8=BF=90=E8=A1=8Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../club/joylink/rtss/simulation/cbtc/data/map/Section.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 d8d038612..82c509711 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 @@ -1002,7 +1002,9 @@ public class Section extends MayOutOfOrderDevice { } public boolean isAheadOf(SimulationDataRepository repository, Section other, boolean right) { - List routePaths = repository.queryRoutePaths(other, this); + List routePaths = repository.queryRoutePathsByEndAndContainsSection(this, other); + if (CollectionUtils.isEmpty(routePaths)) + return false; for (RoutePath routePath : routePaths) { if (routePath.isRight() == right) return true;