remove 删除无用校验

This commit is contained in:
gssong 2024-08-24 11:58:26 +08:00
parent d26772983c
commit 41c43f2a67

View File

@ -119,23 +119,17 @@ public class WorkflowUtils {
deptIds.add(Long.valueOf(StringUtils.substringAfter(user.getProcessedBy(), StrUtil.C_COLON))); deptIds.add(Long.valueOf(StringUtils.substringAfter(user.getProcessedBy(), StrUtil.C_COLON)));
} }
} }
if (CollUtil.isNotEmpty(userIds)) { List<UserDTO> users = userService.selectListByIds(userIds);
List<UserDTO> users = userService.selectListByIds(userIds); if (CollUtil.isNotEmpty(users)) {
if (CollUtil.isNotEmpty(users)) { userDTOList.addAll(users);
userDTOList.addAll(users);
}
} }
if (CollUtil.isNotEmpty(roleIds)) { List<UserDTO> roleUsers = userService.selectUsersByRoleIds(roleIds);
List<UserDTO> users = userService.selectUsersByRoleIds(roleIds); if (CollUtil.isNotEmpty(roleUsers)) {
if (CollUtil.isNotEmpty(users)) { userDTOList.addAll(roleUsers);
userDTOList.addAll(users);
}
} }
if (CollUtil.isNotEmpty(deptIds)) { List<UserDTO> deptUsers = userService.selectUsersByDeptIds(deptIds);
List<UserDTO> users = userService.selectUsersByDeptIds(deptIds); if (CollUtil.isNotEmpty(deptUsers)) {
if (CollUtil.isNotEmpty(users)) { userDTOList.addAll(deptUsers);
userDTOList.addAll(users);
}
} }
} }
return userDTOList; return userDTOList;