Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
db6d523a
Unverified
Commit
db6d523a
authored
Nov 08, 2020
by
皆非
Committed by
GitHub
Nov 08, 2020
Browse files
[代码修复](v2.6):修复禁用无角色用户时报错
parent
1d08c3da
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java
View file @
db6d523a
...
@@ -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
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment