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)) {