mirror of https://gitee.com/maxjhandsome/pig
🎨 Improving structure / format of the code. 格式化代码符合工程规范
This commit is contained in:
parent
b6cf402ed3
commit
b18fd4f3d0
|
@ -48,8 +48,8 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@CacheEvict(value = CacheConstants.DICT_DETAILS, allEntries = true)
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
@CacheEvict(value = CacheConstants.DICT_DETAILS, allEntries = true)
|
||||||
public void removeDict(Integer id) {
|
public void removeDict(Integer id) {
|
||||||
SysDict dict = this.getById(id);
|
SysDict dict = this.getById(id);
|
||||||
// 系统内置
|
// 系统内置
|
||||||
|
|
|
@ -61,8 +61,8 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@CacheEvict(value = CacheConstants.MENU_DETAILS, allEntries = true)
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
@CacheEvict(value = CacheConstants.MENU_DETAILS, allEntries = true)
|
||||||
public Boolean removeRoleById(Integer id) {
|
public Boolean removeRoleById(Integer id) {
|
||||||
sysRoleMenuMapper.delete(Wrappers.<SysRoleMenu>update().lambda().eq(SysRoleMenu::getRoleId, id));
|
sysRoleMenuMapper.delete(Wrappers.<SysRoleMenu>update().lambda().eq(SysRoleMenu::getRoleId, id));
|
||||||
return this.removeById(id);
|
return this.removeById(id);
|
||||||
|
|
|
@ -165,8 +165,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#userDto.username")
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#userDto.username")
|
||||||
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