diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java index 50cbcf1c..c7307f7d 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java @@ -162,7 +162,7 @@ public class DcWarningServiceImpl implements IDcWarningService { return UniversalEnum.ZERO.getNumber(); } //目前护栏碰撞触发的事件先进行过滤掉,后续可能会放开 - if ("4".equals(dcWarning.getWarningSource())&&("4-7".equals(dcWarning.getWarningSubclass())||"4-8".equals(dcWarning.getWarningSubclass()))){ + if ("4".equals(dcWarning.getWarningSource().toString())){ return 1; } String redisKye = dcWarning.getWarningSource().toString() + dcWarning.getWarningType().toString() + dcWarning.getWarningSubclass();//配置数据的key 事件源+事件类型+策略