瀏覽代碼

规则判断

liuwenwen 2 年之前
父節點
當前提交
14e6ccf275
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      server/src/main/java/edp/davinci/service/impl/DataRulesServiceImpl.java

+ 9 - 1
server/src/main/java/edp/davinci/service/impl/DataRulesServiceImpl.java

@@ -29,9 +29,17 @@ public class DataRulesServiceImpl implements DataRulesService
     {
         if (null == dataRules)
         {
-
             throw new ServerException("dataRules is null ");
+        }
+
+        if(dataRules.getRuleType() == null ){
+
+            throw new ServerException("标准类型 ruleType is null ");
+        }
+
+        if(dataRules.getRuleConfig() ==  null || dataRules.getRuleConfig().equals("{}")){
 
+            throw new ServerException("规则配置 ruleConfig is null ");
         }
 
         if(dataRules.getSubjectId() == null ){