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