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 9c9b7294
authored
Jul 24, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.22.0 优化特殊登陆状态的编辑操作 优化用户编辑功能
1 parent
e7722d33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
src/main/java/cn/com/glsx/shield/modules/model/view/UserDTO.java
src/main/java/cn/com/glsx/shield/modules/service/UserService.java
src/main/java/cn/com/glsx/shield/modules/model/view/UserDTO.java
View file @
9c9b729
...
@@ -69,4 +69,9 @@ public class UserDTO {
...
@@ -69,4 +69,9 @@ public class UserDTO {
* 特殊登陆标记位 0为不特殊登陆,1为特殊登陆
* 特殊登陆标记位 0为不特殊登陆,1为特殊登陆
*/
*/
private
Integer
specialLogin
;
private
Integer
specialLogin
;
/**
* 是否显示重置按钮标记 0为不显示,1为显示
*/
private
Integer
resetFlag
;
}
}
src/main/java/cn/com/glsx/shield/modules/service/UserService.java
View file @
9c9b729
...
@@ -188,6 +188,12 @@ public class UserService {
...
@@ -188,6 +188,12 @@ public class UserService {
Tenant
tenant
=
tenantMapper
.
selectById
(
user
.
getTenantId
());
Tenant
tenant
=
tenantMapper
.
selectById
(
user
.
getTenantId
());
String
upperChar
=
ChineseCharacterUtil
.
convertHanzi2Pinyin
(
tenant
.
getTenantName
(),
false
);
String
upperChar
=
ChineseCharacterUtil
.
convertHanzi2Pinyin
(
tenant
.
getTenantName
(),
false
);
userDTO
.
setTenant
(
upperChar
);
userDTO
.
setTenant
(
upperChar
);
// 是否显示重置按钮
if
(
StringUtils
.
isNotEmpty
(
user
.
getSpecialMark
()))
{
userDTO
.
setResetFlag
(
1
);
}
else
{
userDTO
.
setResetFlag
(
0
);
}
}
}
return
userDTO
;
return
userDTO
;
}
}
...
...
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