From cca44f5401623277ca758ce9b045923025e6b7e9 Mon Sep 17 00:00:00 2001 From: aeizzz Date: Mon, 5 Dec 2022 16:29:25 +0800 Subject: [PATCH] =?UTF-8?q?=20:recycle:=20Refactoring=20code.=20=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pig4cloud/pig/admin/service/impl/SysUserServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysUserServiceImpl.java b/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysUserServiceImpl.java index 76678750..b2b40166 100644 --- a/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysUserServiceImpl.java +++ b/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysUserServiceImpl.java @@ -168,8 +168,8 @@ public class SysUserServiceImpl extends ServiceImpl impl @CacheEvict(value = CacheConstants.USER_DETAILS, key = "#sysUser.username") public Boolean removeUserById(SysUser sysUser) { sysUserRoleMapper.deleteByUserId(sysUser.getUserId()); - // 删除用户职位关系 - sysUserPostMapper.delete(Wrappers.lambdaQuery().eq(SysUserPost::getUserId, sysUser.getUserId())); + // 删除用户职位关系 + sysUserPostMapper.delete(Wrappers.lambdaQuery().eq(SysUserPost::getUserId, sysUser.getUserId())); this.removeById(sysUser.getUserId()); return Boolean.TRUE; }