Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5aeb7dcc
authored
Apr 11, 2024
by
罗志长
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 过滤禁用角色的菜单
parent
fa770d13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatUserServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatUserServiceImpl.java
View file @
5aeb7dcc
...
@@ -571,6 +571,12 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser>
...
@@ -571,6 +571,12 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser>
roleIdList
.
add
(-
1
+
""
);
roleIdList
.
add
(-
1
+
""
);
roleIdList
=
platRoleService
.
list
(
new
QueryWrapper
<
PlatRole
>().
lambda
()
.
eq
(
PlatRole:
:
getStatus
,
CommonEnum
.
YES
.
getValue
())
.
in
(
PlatRole:
:
getId
,
roleIdList
))
.
stream
().
map
(
PlatRole:
:
getId
)
.
collect
(
Collectors
.
toList
());
List
<
PlatRoleMenu
>
roleMenuList
=
platRoleMenuService
.
list
(
new
QueryWrapper
<
PlatRoleMenu
>().
lambda
()
List
<
PlatRoleMenu
>
roleMenuList
=
platRoleMenuService
.
list
(
new
QueryWrapper
<
PlatRoleMenu
>().
lambda
()
.
in
(
PlatRoleMenu:
:
getRoleId
,
roleIdList
));
.
in
(
PlatRoleMenu:
:
getRoleId
,
roleIdList
));
List
<
String
>
menuIdList
=
StreamUtil
.
map
(
roleMenuList
,
PlatRoleMenu:
:
getMenuId
);
List
<
String
>
menuIdList
=
StreamUtil
.
map
(
roleMenuList
,
PlatRoleMenu:
:
getMenuId
);
...
...
Write
Preview
Markdown
is supported
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