From 26d555a99f69d19f333791b1112ab3d48e9204d3 Mon Sep 17 00:00:00 2001 From: cheney <1251790704@qq.com> Date: Tue, 28 Mar 2023 17:11:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=A0=E9=99=A4=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/huoran/iasf/controller/UserController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/huoran/iasf/controller/UserController.java b/src/main/java/com/huoran/iasf/controller/UserController.java index c235bb9..cfb07e7 100644 --- a/src/main/java/com/huoran/iasf/controller/UserController.java +++ b/src/main/java/com/huoran/iasf/controller/UserController.java @@ -6,6 +6,8 @@ import com.huoran.iasf.common.aop.annotation.LogAnnotation; import com.huoran.iasf.common.aop.annotation.NoRepeatSubmit; import com.huoran.iasf.common.utils.R; import com.huoran.iasf.entity.SysUser; +import com.huoran.iasf.entity.UserDept; +import com.huoran.iasf.mapper.UserDeptMapper; import com.huoran.iasf.service.HttpSessionService; import com.huoran.iasf.service.UserService; import com.huoran.iasf.vo.CheckVo; @@ -47,6 +49,9 @@ public class UserController { @Resource private UserService userService; + @Resource + private UserDeptMapper userDeptMapper; + @Resource private HttpSessionService httpSessionService; @@ -180,6 +185,8 @@ public class UserController { LambdaQueryWrapper queryWrapper = Wrappers.lambdaQuery(); queryWrapper.in(SysUser::getId, userIds); userService.remove(queryWrapper); + //删除用户部门 + userDeptMapper.delete(Wrappers.lambdaQuery().in(UserDept::getUserId, userIds)); return R.success(); }