mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
pig# updateUser补事务注解
This commit is contained in:
parent
23cb3b777d
commit
5d12086d71
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user