From c099a49ac36cf587433dd998260bb3264353eaf4 Mon Sep 17 00:00:00 2001 From: DU Date: Tue, 9 Mar 2021 10:04:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E6=89=80=E5=B1=9E?= =?UTF-8?q?=E8=BD=A6=E7=AB=99=E6=95=B0=E6=8D=AE=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/simulation/cbtc/build/MapDeviceBuilder.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/build/MapDeviceBuilder.java b/src/main/java/club/joylink/rtss/simulation/cbtc/build/MapDeviceBuilder.java index 1dd84aafa..1f6bd4e78 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/build/MapDeviceBuilder.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/build/MapDeviceBuilder.java @@ -868,12 +868,12 @@ public class MapDeviceBuilder { } // 所属车站 -// Station station = (Station) elementMap.get(signalVO.getBelongStationCode()); -// if (Objects.isNull(station)) { + Station station = (Station) elementMap.get(signalVO.getBelongStationCode()); + if (Objects.isNull(station)) { // errMsgList.add(String.format("信号机[%s(%s)]未设置所属车站或所属车站不存在", signal.getName(), signal.getCode())); -// } else { -// signal.setStation(station); -// } + } else { + signal.setStation(station); + } // 所属联锁站 Station interlockStation = ((Station) elementMap.get(signalVO.getInterlockStationCode())); if (Objects.isNull(interlockStation)) {