Merge remote-tracking branch 'origin/master_new_bule_loop_task'
This commit is contained in:
commit
6afb8fbde8
@ -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));
|
||||
}*/
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user