Parcourir la source

修改字段获取get方法异常

syh il y a 4 ans
Parent
commit
ed028ea6e6

+ 1 - 1
module-alarm/src/main/java/cn/com/ctop/alarm/modules/service/impl/RuleTemplateServiceImpl.java

@@ -307,7 +307,7 @@ public class RuleTemplateServiceImpl extends ServiceImpl<RuleTemplateMapper, Rul
                 accountThresholdQueryWrapper.eq("rule_id", ruleId);
                 RuleAccountThreshold threshold = accountThresholdService.getOne(accountThresholdQueryWrapper);
                 if (!Check.isNull(threshold)) {
-                    String value = threshold.getThreshoId();
+                    String value = threshold.getThreshold();
                     if (!Check.isNull(value)) {
                         if (value.contains("[") && value.contains("]")) {
                             ruleJson.put("threshold", JSONArray.parseArray(value));