Bläddra i källkod

规则引擎2.0定时执行逻辑

zhaoxian 3 år sedan
förälder
incheckning
45291de668

+ 2 - 2
module-alarm/src/main/java/cn/com/ctop/alarm/modules/service/impl/RuleGroupServiceImpl.java

@@ -504,8 +504,8 @@ public class RuleGroupServiceImpl extends ServiceImpl<RuleGroupMapper, RuleGroup
             //后续 操作阈值
             String operationThreshold = thresholdJson.getString("operationThreshold");
             //峰值
-            String maxValue = thresholdJson.getString("maxValue");
-            String minValue = thresholdJson.getString("minValue");
+            String maxValue = Check.isNull(thresholdJson.getString("maxValue"))?"-1":thresholdJson.getString("maxValue");
+            String minValue = Check.isNull(thresholdJson.getString("minValue"))?"-1":thresholdJson.getString("minValue");
 
             if (type == 1 || type == 3) {
                 Long planId = obj.getLong("planId");//头条