处理管理员编辑bug
This commit is contained in:
parent
a54756e081
commit
289653ec5a
|
|
@ -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"));
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue