mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
update SysUserServiceImpl.java.
用户删除时,需要删除用户职位关系 Signed-off-by: sun2008mt <sun2008mt@qq.com>
This commit is contained in:
parent
70e88772ff
commit
8124d41e8d
@ -168,6 +168,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
||||
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#sysUser.username")
|
||||
public Boolean removeUserById(SysUser sysUser) {
|
||||
sysUserRoleMapper.deleteByUserId(sysUser.getUserId());
|
||||
// 删除用户职位关系
|
||||
sysUserPostMapper.delete(Wrappers.<SysUserPost>lambdaQuery().eq(SysUserPost::getUserId, sysUser.getUserId()));
|
||||
this.removeById(sysUser.getUserId());
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user