mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
commit
a00e3468ea
@ -204,7 +204,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||||||
@Override
|
@Override
|
||||||
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#userDto.username")
|
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#userDto.username")
|
||||||
public R<Boolean> updateUserInfo(UserDTO userDto) {
|
public R<Boolean> updateUserInfo(UserDTO userDto) {
|
||||||
UserVO userVO = baseMapper.getUserVoByUsername(userDto.getUsername());
|
UserVO userVO = baseMapper.getUserVoById(SecurityUtils.getUser().getId());
|
||||||
|
|
||||||
SysUser sysUser = new SysUser();
|
SysUser sysUser = new SysUser();
|
||||||
sysUser.setPhone(userDto.getPhone());
|
sysUser.setPhone(userDto.getPhone());
|
||||||
@ -412,7 +412,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||||||
@Override
|
@Override
|
||||||
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#userDto.username")
|
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#userDto.username")
|
||||||
public R changePassword(UserDTO userDto) {
|
public R changePassword(UserDTO userDto) {
|
||||||
UserVO userVO = baseMapper.getUserVoByUsername(userDto.getUsername());
|
UserVO userVO = baseMapper.getUserVoById(SecurityUtils.getUser().getId());
|
||||||
if (Objects.isNull(userVO)) {
|
if (Objects.isNull(userVO)) {
|
||||||
return R.failed("用户不存在");
|
return R.failed("用户不存在");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user