车车 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