From ba0d97b29849fa68592345e170419011d92e1a82 Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Mon, 6 Jun 2022 18:59:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=B3=A8=E6=8E=89=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/simulation/cbtc/CTC/data/RouteSequence.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/CTC/data/RouteSequence.java b/src/main/java/club/joylink/rtss/simulation/cbtc/CTC/data/RouteSequence.java index e01381857..efaa3d44a 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/CTC/data/RouteSequence.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/CTC/data/RouteSequence.java @@ -7,7 +7,10 @@ import lombok.Getter; import lombok.Setter; import java.time.LocalTime; -import java.util.*; +import java.util.Comparator; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; /** * 进路序列 @@ -106,9 +109,9 @@ public class RouteSequence { this.departure = departure; this.planTime = item.getStationPlan().getArriveTime().minusMinutes(9); Section track = getTrack(); - Route route = item.getStationDirection().getSignal().getRouteList().stream() - .filter(r -> Objects.equals(track, r.getLastRouteSection())) - .findAny().orElse(null); +// Route route = item.getStationDirection().getSignal().getRouteList().stream() +// .filter(r -> Objects.equals(track, r.getLastRouteSection())) +// .findAny().orElse(null); todo 报错,为了发布,暂时注掉 BusinessExceptionAssertEnum.SYSTEM_EXCEPTION.assertNotNull(route, String .format("车次[%s]的[%s]进路找不到", getTripNumber(), departure ? "发车" : "接车")); this.route = route;