yumeng преди 4 години
родител
ревизия
c7b80dd7d4
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      module-alarm/src/main/java/cn/com/ctop/alarm/modules/service/impl/RuleAccountTemplateServiceImpl.java

+ 3 - 0
module-alarm/src/main/java/cn/com/ctop/alarm/modules/service/impl/RuleAccountTemplateServiceImpl.java

@@ -87,6 +87,9 @@ public class RuleAccountTemplateServiceImpl extends ServiceImpl<RuleAccountTempl
                 RuleAccountThreshold threshold = new RuleAccountThreshold();
                 threshold.setAccountId(accountId);
                 threshold.setRuleId(ruleBase.getId());
+                if (ruleBase.getVariableType() == 0) {
+                    threshold.setThreshoId(ruleBase.getThreshold());
+                }
                 ruleAccountThresholdService.save(threshold);
             }