Commit 8014ff75 by hzc

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

parent 2c32ed93
......@@ -133,9 +133,10 @@ public class TaskRuleCtrl {
value.append(configInfos.get(i).getCfValue());
}
}
String[] split = value.toString().split(Constants.SEP_COMMA);
levels = Arrays.asList(split);
if(!value.toString().equals("")){
String[] split = value.toString().split(Constants.SEP_COMMA);
levels = Arrays.asList(split);
}
}else if(StringUtils.isNotBlank(orgNo)){
// switch (orgNo.length()){
// case 2: key=Constants.RULE_NAME_PRINVINCE;
......@@ -149,9 +150,11 @@ public class TaskRuleCtrl {
key=Constants.TASK_TYPE_NAME+orgNo;
if(key!=null){
ConfigInfo configInfoById = configInfoService.getConfigInfoById(key);
String cfValue = configInfoById.getCfValue();
String[] split = cfValue.split(Constants.SEP_COMMA);
levels = Arrays.asList(split);
if(configInfoById!=null){
String cfValue = configInfoById.getCfValue();
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