fix 修复 用户昵称修改后未清除对应缓存问题
parent
c7b4f275d2
commit
66a18e2f26
|
|
@ -32,6 +32,7 @@ import org.dromara.system.domain.vo.SysUserExportVo;
|
|||
import org.dromara.system.domain.vo.SysUserVo;
|
||||
import org.dromara.system.mapper.*;
|
||||
import org.dromara.system.service.ISysUserService;
|
||||
import org.springframework.cache.annotation.CacheEvict;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
|
@ -329,6 +330,7 @@ public class SysUserServiceImpl implements ISysUserService {
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@CacheEvict(cacheNames = CacheNames.SYS_NICKNAME, key = "#user.userId")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public int updateUser(SysUserBo user) {
|
||||
// 新增用户与角色管理
|
||||
|
|
@ -377,6 +379,7 @@ public class SysUserServiceImpl implements ISysUserService {
|
|||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
@CacheEvict(cacheNames = CacheNames.SYS_NICKNAME, key = "#user.userId")
|
||||
@Override
|
||||
public int updateUserProfile(SysUserBo user) {
|
||||
return baseMapper.update(null,
|
||||
|
|
|
|||
Loading…
Reference in New Issue