Commit 9c9b7294 by 杨林龙

1.22.0 优化特殊登陆状态的编辑操作 优化用户编辑功能

1 parent e7722d33
...@@ -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;
} }
...@@ -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;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!