diff --git a/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DeviceChangeStatusConvertor.java b/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DeviceChangeStatusConvertor.java index 890c3b1..11cb91d 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DeviceChangeStatusConvertor.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DeviceChangeStatusConvertor.java @@ -3,9 +3,6 @@ package club.joylink.xiannccda.ats.message.collect.convertor; import club.joylink.xiannccda.alert.core.AlertManager; import club.joylink.xiannccda.ats.message.MessageId; import club.joylink.xiannccda.ats.message.collect.DeviceDataRepository.DataTypeEnum; -import club.joylink.xiannccda.ats.warn.axle.AxleLedAlertListener.AxleLedAlertEvent; - - import club.joylink.xiannccda.ats.warn.SwitchLostAlertListener.SwitchLostAlertEvent; import club.joylink.xiannccda.dto.protos.DeviceStatusProto.Switch; import com.google.protobuf.GeneratedMessageV3.Builder; @@ -40,7 +37,7 @@ public class DeviceChangeStatusConvertor extends DefaultConvertor { if (builder instanceof Switch.Builder switchBuild) { alertManager.emit(new SwitchLostAlertEvent(switchBuild)); // alertManager.emit(new SwitchAndTrackLedAlertEvent(switchBuild)); - alertManager.emit(new AxleLedAlertEvent(switchBuild)); +// alertManager.emit(new AxleLedAlertEvent(switchBuild)); } /*else if (builder instanceof Platform.Builder platformBuild) { alertManager.emit(new PlatformAlertEvent(platformBuild)); }*/ diff --git a/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DeviceInitConvertor.java b/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DeviceInitConvertor.java index be4c3db..986aabd 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DeviceInitConvertor.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DeviceInitConvertor.java @@ -3,9 +3,6 @@ package club.joylink.xiannccda.ats.message.collect.convertor; import club.joylink.xiannccda.alert.core.AlertManager; import club.joylink.xiannccda.ats.message.MessageId; import club.joylink.xiannccda.ats.message.collect.DeviceDataRepository.DataTypeEnum; -import club.joylink.xiannccda.ats.warn.axle.AxleLedAlertListener.AxleLedAlertEvent; - - import club.joylink.xiannccda.ats.warn.SwitchLostAlertListener.SwitchLostAlertEvent; import club.joylink.xiannccda.dto.protos.DeviceStatusProto.Switch; import com.google.protobuf.GeneratedMessageV3.Builder; @@ -38,7 +35,7 @@ public class DeviceInitConvertor extends DefaultConvertor { // } else if (builder instanceof Switch.Builder switchBuild) { // alertManager.emit(new SwitchAndTrackLedAlertEvent(switchBuild)); - alertManager.emit(new AxleLedAlertEvent(switchBuild)); +// alertManager.emit(new AxleLedAlertEvent(switchBuild)); alertManager.emit(new SwitchLostAlertEvent(switchBuild)); } }