Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hubin
long-tern-care-service
Commits
fc73e740
Commit
fc73e740
authored
Mar 22, 2022
by
duanzhihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改角色
parent
494ee193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
UserController.java
...va/com/hungraim/ltc/system/controller/UserController.java
+4
-1
No files found.
system/system-admin-service/src/main/java/com/hungraim/ltc/system/controller/UserController.java
View file @
fc73e740
...
@@ -257,7 +257,10 @@ public class UserController {
...
@@ -257,7 +257,10 @@ public class UserController {
List
<
Long
>
deleteRoleResources
=
roleResources
.
stream
()
List
<
Long
>
deleteRoleResources
=
roleResources
.
stream
()
.
map
(
SystemUserRole:
:
getRoleId
).
filter
(
id
->
!
reqUserInfo
.
getRoleIds
().
contains
(
id
))
.
map
(
SystemUserRole:
:
getRoleId
).
filter
(
id
->
!
reqUserInfo
.
getRoleIds
().
contains
(
id
))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
systemUserRoleMapper
.
removeByIds
(
deleteRoleResources
,
reqUserInfo
.
getId
());
if
(!
deleteRoleResources
.
isEmpty
()){
systemUserRoleMapper
.
removeByIds
(
deleteRoleResources
,
reqUserInfo
.
getId
());
}
// systemUserRoleMapper.removeByIds(deleteRoleResources,reqUserInfo.getId());
// userRoleService.removeByIds(deleteRoleResources);
// userRoleService.removeByIds(deleteRoleResources);
return
Result
.
success
(
"更新成功"
);
return
Result
.
success
(
"更新成功"
);
}
}
...
...
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