浏览代码

规则修改

车车 6 月之前
父节点
当前提交
05f6e70d08
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      yudao-module-iscs/src/main/resources/rules/sample.drl

+ 2 - 2
yudao-module-iscs/src/main/resources/rules/sample.drl

@@ -5,14 +5,14 @@ dialect "mvel" // 默认就是MVEL表达式语言
 
 rule "checkHighSalary"
 when
-    $p : Person(age > 30 && salary >= 10000)
+    $p : Person(age > 30 && salary >= 30000)
 then
     System.out.println("警告:[" + $p.getName() + "]薪资过高drl!");
 end
 
 rule "checkHighSalary2"
 when
-    $p : Person(age > 20 && salary >= 12000)
+    $p : Person(age > 20 && salary >= 20000)
 then
     System.out.println("警告:[" + $p.getName() + "]薪资过高2drl!");
 end