From 1af25cc19d350c562e913109dec7c48f1731fd39 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Fri, 29 Mar 2024 10:40:31 +0800 Subject: [PATCH] =?UTF-8?q?#FDP=E5=91=8A=E8=AD=A6=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hnac/hzims/alarm/config/constants/AlarmConstants.java | 4 ++-- .../com/hnac/hzims/alarm/source/service/impl/FdpAlarmServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/alarm/config/constants/AlarmConstants.java b/hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/alarm/config/constants/AlarmConstants.java index ca69964..d3e3789 100644 --- a/hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/alarm/config/constants/AlarmConstants.java +++ b/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"; } diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/FdpAlarmServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/FdpAlarmServiceImpl.java index 75e6d1e..23fc8ca 100644 --- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/FdpAlarmServiceImpl.java +++ b/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);