From c35d9c6311b6f9ef75b49559a5c6db75e0a43ac6 Mon Sep 17 00:00:00 2001 From: zqy <2522236926@qq.com> Date: 星期二, 30 七月 2024 20:06:50 +0800 Subject: [PATCH] 修改bug&分享 --- ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index 20050dd..2e6ca32 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -229,10 +229,7 @@ <delete id="deleteById" parameterType="Long"> - delete from sys_user where user_id in - <foreach collection="array" item="userId" open="(" separator="," close=")"> - #{userId} - </foreach> + delete from sys_user where user_id = #{userId} </delete> <delete id="deleteUserByIds" parameterType="Long"> -- Gitblit v1.9.1