pig# updateUser补事务注解

This commit is contained in:
zjy 2021-08-04 21:06:10 +08:00
parent 23cb3b777d
commit 5d12086d71

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);