Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
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
liqin
chnmuseum-party
Commits
314e4c99
Commit
314e4c99
authored
May 27, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户信息限制管理员数量
parent
4fa5c761
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
TUserController.java
...va/cn/chnmuseum/party/web/controller/TUserController.java
+2
-2
No files found.
src/main/java/cn/chnmuseum/party/web/controller/TUserController.java
View file @
314e4c99
...
...
@@ -30,6 +30,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.shiro.authz.annotation.RequiresAuthentication
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
...
...
@@ -424,7 +425,7 @@ public class TUserController extends BaseController {
resultMap
.
put
(
"message"
,
"机构已存在一个互动审核员!"
);
return
resultMap
;
}
if
(
StringUtils
.
isNotBlank
(
user
.
getRoleId
()))
{
if
(
StringUtils
.
isNotBlank
(
user
.
getRoleId
())
&&
!
CollectionUtils
.
isEmpty
(
user
.
getRoleList
())
)
{
user
.
getRoleList
().
remove
(
ROLE_HDSHY
);
user
.
getRoleList
().
remove
(
ROLE_PTGLY
);
user
.
getRoleList
().
add
(
user
.
getRoleId
());
...
...
@@ -436,7 +437,6 @@ public class TUserController extends BaseController {
user
.
setUpdateTime
(
DateUtil80
.
getDateTimeOfTimestamp
(
System
.
currentTimeMillis
()));
ret
=
userService
.
updateById
(
user
);
List
<
String
>
list
=
user
.
getRoleList
();
if
(
null
!=
list
&&
list
.
size
()
>
0
&&
list
.
get
(
0
)
!=
null
)
{
...
...
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