Commit 1d692ff7 by 张祺

处理空值

parent eda68dc2
......@@ -158,8 +158,16 @@ public class TaskRuleServiceImpl implements TaskRuleService {
if (targetRoles != null) {
String auditIds = targetRoles.getAuditRoleIds();
String enterIds = targetRoles.getEnterRoleIds();
List<String> aids = Arrays.asList(StringUtils.split(auditIds, Constants.SEP_COMMA));
List<String> eids = Arrays.asList(StringUtils.split(enterIds, Constants.SEP_COMMA));
String[] auIds = StringUtils.split(auditIds, Constants.SEP_COMMA);
List<String> aids = new ArrayList<>();
if (auIds != null) {
aids = Arrays.asList(auIds);
}
String[] enIds = StringUtils.split(enterIds, Constants.SEP_COMMA);
List<String> eids = new ArrayList<>();
if (enIds != null) {
eids = Arrays.asList(enIds);
}
List<String> ids = new ArrayList<>();
ids.addAll(aids);
ids.addAll(eids);
......
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