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

pull/522/head
皆非 2020-11-08 10:17:15 +08:00 committed by GitHub
parent 1d08c3da03
commit db6d523adb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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