Explorar o código

fix 新增规则引擎

18339543638 %!s(int64=3) %!d(string=hai) anos
pai
achega
2fbbfb5559

+ 1 - 1
jetlinks-manager/rule-engine-manager/src/main/java/org/jetlinks/community/rule/engine/service/RuleInstanceService.java

@@ -155,7 +155,7 @@ public class RuleInstanceService extends GenericReactiveCrudService<RuleInstance
             this.findById(instance.getId())
                 .flatMap(oldInstance->{
                     if(ObjectUtil.equal(instance.getModelMeta(),oldInstance.getModelMeta())){
-                        return this.update(instance);
+                        return this.updateById(instance.getId(),instance).then();
                     }else {
                         instance.setState(oldInstance.getState());
                         RuleModel model = instance.toRule(modelParser);