修改NCC报警bug

This commit is contained in:
joylink_zhangsai 2023-05-26 16:35:31 +08:00
parent 8acadcd71f
commit 63fbc5d0c6

View File

@ -137,7 +137,7 @@ public class NccAlarmService {
return defaultReason;
}
AtsAlarm atsAlarm = deviceFaultAlarm.get();
if (StringUtils.hasText(atsAlarm.getDeviceCode())) {
if (!StringUtils.hasText(atsAlarm.getDeviceCode())) {
return defaultReason;
}
MapElement element = repository.findByCode(atsAlarm.getDeviceCode());