处理管理员编辑bug

This commit is contained in:
TinyAnts 2022-09-13 11:15:07 +08:00
parent a54756e081
commit 289653ec5a
2 changed files with 1 additions and 3 deletions

View File

@ -321,9 +321,8 @@ public class SystemAuthAdminServiceImpl implements ISystemAuthAdminService {
*/ */
@Override @Override
public void upInfo(SystemAuthAdminParam systemAuthAdminParam, Integer adminId) { public void upInfo(SystemAuthAdminParam systemAuthAdminParam, Integer adminId) {
String[] field = {"id", "username", "nickname", "password", "salt"};
SystemAuthAdmin model = systemAuthAdminMapper.selectOne(new QueryWrapper<SystemAuthAdmin>() SystemAuthAdmin model = systemAuthAdminMapper.selectOne(new QueryWrapper<SystemAuthAdmin>()
.select(field) .select("id,username,nickname,password,salt")
.eq("id", adminId) .eq("id", adminId)
.eq("is_delete", 0) .eq("is_delete", 0)
.last("limit 1")); .last("limit 1"));

View File

@ -44,7 +44,6 @@ public class SystemAuthAdminParam implements Serializable {
@Length(min = 6, max = 32, message = "密码必须在6~32个字符内", groups = {create.class}) @Length(min = 6, max = 32, message = "密码必须在6~32个字符内", groups = {create.class})
private String password; private String password;
@NotEmpty(message = "当前密码不能为空", groups = {upInfo.class})
@Length(min = 6, max = 32, message = "当前密码错误", groups = {upInfo.class}) @Length(min = 6, max = 32, message = "当前密码错误", groups = {upInfo.class})
private String currPassword; private String currPassword;