Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-usercenter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 12c391a2
authored
Jul 18, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.22.0 优化特殊登陆状态的编辑操作 增加重置UID功能
1 parent
04ccecaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
src/main/java/cn/com/glsx/shield/modules/service/UserService.java
src/main/java/cn/com/glsx/shield/modules/service/UserService.java
View file @
12c391a
...
@@ -434,6 +434,8 @@ public class UserService {
...
@@ -434,6 +434,8 @@ public class UserService {
String
oldPassword
=
user
.
getPassword
();
String
oldPassword
=
user
.
getPassword
();
Integer
oldSpecialLogin
=
user
.
getSpecialLogin
();
BeanUtils
.
copyProperties
(
userBO
,
user
);
BeanUtils
.
copyProperties
(
userBO
,
user
);
//如果填了密码,修改密码
//如果填了密码,修改密码
...
@@ -459,6 +461,13 @@ public class UserService {
...
@@ -459,6 +461,13 @@ public class UserService {
userRoleRelationMapper
.
updateByPrimaryKeySelective
(
relation
);
userRoleRelationMapper
.
updateByPrimaryKeySelective
(
relation
);
}
}
}
}
// 如果有关闭特殊登陆状态 则重置UID
if
(
SpecialLoginEnum
.
SPECIAL_LOGIN
.
getCode
().
equals
(
oldSpecialLogin
)
&&
SpecialLoginEnum
.
NON_SPECIAL_LOGIN
.
getCode
().
equals
(
userBO
.
getSpecialLogin
()))
{
log
.
info
(
"修改特殊登陆状态为关闭状态,重置UID,用户ID:"
+
userBO
.
getId
());
resetUID
(
userBO
.
getId
());
}
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment