🎨 Improving structure / format of the code. 格式化代码符合工程规范

This commit is contained in:
lht 2021-08-07 10:47:55 +08:00
parent b6cf402ed3
commit b18fd4f3d0
3 changed files with 3 additions and 3 deletions

View File

@ -48,8 +48,8 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
* @return
*/
@Override
@CacheEvict(value = CacheConstants.DICT_DETAILS, allEntries = true)
@Transactional(rollbackFor = Exception.class)
@CacheEvict(value = CacheConstants.DICT_DETAILS, allEntries = true)
public void removeDict(Integer id) {
SysDict dict = this.getById(id);
// 系统内置

View File

@ -61,8 +61,8 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
* @return
*/
@Override
@CacheEvict(value = CacheConstants.MENU_DETAILS, allEntries = true)
@Transactional(rollbackFor = Exception.class)
@CacheEvict(value = CacheConstants.MENU_DETAILS, allEntries = true)
public Boolean removeRoleById(Integer id) {
sysRoleMenuMapper.delete(Wrappers.<SysRoleMenu>update().lambda().eq(SysRoleMenu::getRoleId, id));
return this.removeById(id);

View File

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