From 5b874215e4e76651f9cc286bc4dd4b60d17b7b1e Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Tue, 26 Dec 2023 10:29:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E8=BD=B4=E5=85=89=E5=B8=A6=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collect/convertor/DeviceChangeStatusConvertor.java | 5 +---- .../ats/message/collect/convertor/DeviceInitConvertor.java | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) 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)); } }