Browse Source

#FDP告警保存更改

zhongwei
yang_shj 8 months ago
parent
commit
1af25cc19d
  1. 4
      hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/alarm/config/constants/AlarmConstants.java
  2. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/FdpAlarmServiceImpl.java

4
hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/alarm/config/constants/AlarmConstants.java

@ -65,7 +65,7 @@ public interface AlarmConstants {
String SMS_MESSAGE_TEMPLATE_CODE = "aliyun-alert-push";
String FDP_INVALID_STATUS = "0.0";
String FDP_INVALID_STATUS = "1.0";
String FDP_INVALID_ZOME_STATUS = "0";
String FDP_INVALID_ZOME_STATUS = "1";
}

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/FdpAlarmServiceImpl.java

@ -72,7 +72,7 @@ public class FdpAlarmServiceImpl implements FdpAlarmService {
if (ObjectUtils.isEmpty(alarms)) {
return new ArrayList<>();
}
if(FDP_INVALID_STATUS.equals(alarms.getStatus()) || FDP_INVALID_ZOME_STATUS.equals(alarms.getStatus())){
if(!FDP_INVALID_STATUS.equals(alarms.getStatus()) && !FDP_INVALID_ZOME_STATUS.equals(alarms.getStatus())){
return new ArrayList();
}
AlarmEntity entity = getAlarmEntity(alarms);

Loading…
Cancel
Save