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)) { if (ObjectUtils.isEmpty(alarms)) {
return new ArrayList<>(); 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(); return Collections.singletonList(getAlarmEntity(alarms));
} }
AlarmEntity entity = getAlarmEntity(alarms); return new ArrayList<>();
return Collections.singletonList(entity);
} }
private AlarmEntity getAlarmEntity(FdpAlarmVo item) { private AlarmEntity getAlarmEntity(FdpAlarmVo item) {

Loading…
Cancel
Save