!146 updateUser补事务注解

Merge pull request !146 from fishRun/master
This commit is contained in:
lengleng 2021-08-05 00:37:17 +00:00 committed by Gitee
commit 0848db4dc1
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
@Override
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#userDto.username")
@Transactional(rollbackFor = Exception.class)
public Boolean updateUser(UserDTO userDto) {
SysUser sysUser = new SysUser();
BeanUtils.copyProperties(userDto, sysUser);