From 8342c4b978435690be8f8e019e88a0e732410138 Mon Sep 17 00:00:00 2001
From: dinggang <2498628697@qq.com>
Date: Fri, 25 Nov 2022 16:45:11 +0800
Subject: [PATCH] =?UTF-8?q?sql=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
renren-admin/src/main/resources/mapper/sys/SysRoleUserDao.xml | 3 ++-
renren-admin/src/main/resources/mapper/sys/SysUserDao.xml | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/renren-admin/src/main/resources/mapper/sys/SysRoleUserDao.xml b/renren-admin/src/main/resources/mapper/sys/SysRoleUserDao.xml
index 42bea077..9ebf6089 100644
--- a/renren-admin/src/main/resources/mapper/sys/SysRoleUserDao.xml
+++ b/renren-admin/src/main/resources/mapper/sys/SysRoleUserDao.xml
@@ -20,11 +20,12 @@
-->
- UPDATE sys_role_user SET del_flag = 0, update_date = NOW(), updater = #{updater}
+ UPDATE sys_role_user SET del_flag = 1, update_date = NOW(), updater = #{updater}
where user_id in
#{userId}
+ AND del_flag = 0