Commit 32fa45d8 authored by fangxinjiang's avatar fangxinjiang

编辑用户不修改密码

parent e9fe1f76
...@@ -192,9 +192,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl ...@@ -192,9 +192,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
MsgUtils.getMessage(ErrorCodes.SYS_USER_UPDATE_PASSWORDERROR)); MsgUtils.getMessage(ErrorCodes.SYS_USER_UPDATE_PASSWORDERROR));
SysUser sysUser = new SysUser(); SysUser sysUser = new SysUser();
if (StrUtil.isNotBlank(userDto.getNewpassword1())) { /*if (StrUtil.isNotBlank(userDto.getNewpassword1())) {
sysUser.setPassword(ENCODER.encode(userDto.getNewpassword1())); sysUser.setPassword(ENCODER.encode(userDto.getNewpassword1()));
} }*/
sysUser.setPhone(userDto.getPhone()); sysUser.setPhone(userDto.getPhone());
sysUser.setUserId(userVO.getUserId()); sysUser.setUserId(userVO.getUserId());
sysUser.setAvatar(userDto.getAvatar()); sysUser.setAvatar(userDto.getAvatar());
...@@ -215,9 +215,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl ...@@ -215,9 +215,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
BeanUtils.copyProperties(userDto, sysUser); BeanUtils.copyProperties(userDto, sysUser);
sysUser.setUpdateTime(LocalDateTime.now()); sysUser.setUpdateTime(LocalDateTime.now());
if (StrUtil.isNotBlank(userDto.getPassword())) { /*if (StrUtil.isNotBlank(userDto.getPassword())) {
sysUser.setPassword(ENCODER.encode(userDto.getPassword())); sysUser.setPassword(ENCODER.encode(userDto.getPassword()));
} }*/
this.updateById(sysUser); this.updateById(sysUser);
sysUserRoleMapper sysUserRoleMapper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment