mirror of https://gitee.com/maxjhandsome/pig
pig# updateUser补事务注解
This commit is contained in:
parent
23cb3b777d
commit
5d12086d71
|
@ -166,6 +166,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")
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public Boolean updateUser(UserDTO userDto) {
|
public Boolean updateUser(UserDTO userDto) {
|
||||||
SysUser sysUser = new SysUser();
|
SysUser sysUser = new SysUser();
|
||||||
BeanUtils.copyProperties(userDto, sysUser);
|
BeanUtils.copyProperties(userDto, sysUser);
|
||||||
|
|
Loading…
Reference in New Issue