Unverified Commit db6d523a authored by 皆非's avatar 皆非 Committed by GitHub
Browse files

[代码修复](v2.6):修复禁用无角色用户时报错

parent 1d08c3da
...@@ -154,6 +154,9 @@ public class RoleServiceImpl implements RoleService { ...@@ -154,6 +154,9 @@ public class RoleServiceImpl implements RoleService {
@Override @Override
public Integer findByRoles(Set<Role> roles) { public Integer findByRoles(Set<Role> roles) {
if (roles.size() == 0) {
return Integer.MAX_VALUE;
}
Set<RoleDto> roleDtos = new HashSet<>(); Set<RoleDto> roleDtos = new HashSet<>();
for (Role role : roles) { for (Role role : roles) {
roleDtos.add(findById(role.getId())); roleDtos.add(findById(role.getId()));
......
Supports Markdown
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