Commit 8014ff75 by hzc

规则保存时先检查合理性,级别根据机构编码查询

parent 2c32ed93
...@@ -133,9 +133,10 @@ public class TaskRuleCtrl { ...@@ -133,9 +133,10 @@ public class TaskRuleCtrl {
value.append(configInfos.get(i).getCfValue()); value.append(configInfos.get(i).getCfValue());
} }
} }
String[] split = value.toString().split(Constants.SEP_COMMA); if(!value.toString().equals("")){
levels = Arrays.asList(split); String[] split = value.toString().split(Constants.SEP_COMMA);
levels = Arrays.asList(split);
}
}else if(StringUtils.isNotBlank(orgNo)){ }else if(StringUtils.isNotBlank(orgNo)){
// switch (orgNo.length()){ // switch (orgNo.length()){
// case 2: key=Constants.RULE_NAME_PRINVINCE; // case 2: key=Constants.RULE_NAME_PRINVINCE;
...@@ -149,9 +150,11 @@ public class TaskRuleCtrl { ...@@ -149,9 +150,11 @@ public class TaskRuleCtrl {
key=Constants.TASK_TYPE_NAME+orgNo; key=Constants.TASK_TYPE_NAME+orgNo;
if(key!=null){ if(key!=null){
ConfigInfo configInfoById = configInfoService.getConfigInfoById(key); ConfigInfo configInfoById = configInfoService.getConfigInfoById(key);
String cfValue = configInfoById.getCfValue(); if(configInfoById!=null){
String[] split = cfValue.split(Constants.SEP_COMMA); String cfValue = configInfoById.getCfValue();
levels = Arrays.asList(split); String[] split = cfValue.split(Constants.SEP_COMMA);
levels = Arrays.asList(split);
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment