diff --git a/src/main/java/club/joylink/xiannccda/ats/warn/axle/AxleLedMostMonitorListener.java b/src/main/java/club/joylink/xiannccda/ats/warn/axle/AxleLedMostMonitorListener.java index de55f63..eed85cc 100644 --- a/src/main/java/club/joylink/xiannccda/ats/warn/axle/AxleLedMostMonitorListener.java +++ b/src/main/java/club/joylink/xiannccda/ats/warn/axle/AxleLedMostMonitorListener.java @@ -55,7 +55,7 @@ public class AxleLedMostMonitorListener implements AlertSourceEventListener> areaDataListMap = this.findOccupiedData(lineIdInt, mostType, lockSource.deviceCodes); @@ -65,9 +65,6 @@ public class AxleLedMostMonitorListener implements AlertSourceEventListener deviceStatusList = occupiedEntry.getValue(); for (TrackOccupiedStatus device : occupiedEntry.getValue()) { device.saveAlertDataSouce = alertDataSource.putAlterDevice(lineIdInt, customName, device.deviceCode); -// if (Objects.equals(device.saveAlertDataSouce, false)) { -// alertDataSource.removeAlterDevice(lineIdInt, customName, device.deviceCode); -// } } String ledName = lockSource.alertType == AlertType.AXLE_LED_RED ? "红光带" : "橙光带"; List warnDeviceList = alertDataSource.findAllWarnDeviceForList(lineIdInt, customName); diff --git a/src/main/java/club/joylink/xiannccda/service/AlertMockService.java b/src/main/java/club/joylink/xiannccda/service/AlertMockService.java index 7edf554..139d6aa 100644 --- a/src/main/java/club/joylink/xiannccda/service/AlertMockService.java +++ b/src/main/java/club/joylink/xiannccda/service/AlertMockService.java @@ -114,7 +114,7 @@ public class AlertMockService { sb.append(String.format("%s有重复的车组", groupDatas.keySet())); } } - BusinessExceptionAssertEnum.ARGUMENT_ILLEGAL.assertTrue(!sb.isEmpty(), sb.toString()); + BusinessExceptionAssertEnum.ARGUMENT_ILLEGAL.assertNotTrue(!sb.isEmpty(), sb.toString()); } mockDTO.setAlertType(alertType);