소스 검색

规则修改

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