Browse Source

#FDP告警保存更改

zhongwei
yang_shj 8 months ago
parent
commit
9079e8682b
  1. 7
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/FdpAlarmServiceImpl.java

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

@ -72,11 +72,10 @@ 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())){
return new ArrayList();
if(FDP_INVALID_STATUS.equals(alarms.getStatus()) || FDP_INVALID_ZOME_STATUS.equals(alarms.getStatus())){
return Collections.singletonList(getAlarmEntity(alarms));
}
AlarmEntity entity = getAlarmEntity(alarms);
return Collections.singletonList(entity);
return new ArrayList<>();
}
private AlarmEntity getAlarmEntity(FdpAlarmVo item) {

Loading…
Cancel
Save