mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-31 08:14:18 +08:00
!290 update SysUserServiceImpl.java.
Merge pull request !290 from sun2008mt/N/A
This commit is contained in:
commit
82e5e52556
@ -168,6 +168,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||||||
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#sysUser.username")
|
@CacheEvict(value = CacheConstants.USER_DETAILS, key = "#sysUser.username")
|
||||||
public Boolean removeUserById(SysUser sysUser) {
|
public Boolean removeUserById(SysUser sysUser) {
|
||||||
sysUserRoleMapper.deleteByUserId(sysUser.getUserId());
|
sysUserRoleMapper.deleteByUserId(sysUser.getUserId());
|
||||||
|
// 删除用户职位关系
|
||||||
|
sysUserPostMapper.delete(Wrappers.<SysUserPost>lambdaQuery().eq(SysUserPost::getUserId, sysUser.getUserId()));
|
||||||
this.removeById(sysUser.getUserId());
|
this.removeById(sysUser.getUserId());
|
||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user