车车 пре 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"
 rule "checkHighSalary"
 when
 when
-    $p : Person(age > 30 && salary >= 10000)
+    $p : Person(age > 30 && salary >= 30000)
 then
 then
     System.out.println("警告:[" + $p.getName() + "]薪资过高drl!");
     System.out.println("警告:[" + $p.getName() + "]薪资过高drl!");
 end
 end
 
 
 rule "checkHighSalary2"
 rule "checkHighSalary2"
 when
 when
-    $p : Person(age > 20 && salary >= 12000)
+    $p : Person(age > 20 && salary >= 20000)
 then
 then
     System.out.println("警告:[" + $p.getName() + "]薪资过高2drl!");
     System.out.println("警告:[" + $p.getName() + "]薪资过高2drl!");
 end
 end