From 583164c36374731c82d7212d86e8a6236874621c Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 02 七月 2024 16:59:11 +0800 Subject: [PATCH] 导入导出题目时答案的处理 --- src/main/resources/mapper/UserMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml index 0d3b2e1..c6f89ad 100644 --- a/src/main/resources/mapper/UserMapper.xml +++ b/src/main/resources/mapper/UserMapper.xml @@ -346,8 +346,8 @@ <if test="userName != null and userName != ''"> AND real_name LIKE concat('%',#{userName},'%') </if> - <if test="role != null and role.size() > 0"> - AND role IN <foreach collection="role" item="item" open="(" separator="," close=")"> #{item} </foreach> + <if test="roles != null and roles.size() > 0"> + AND role IN <foreach collection="roles" item="item" open="(" separator="," close=")"> #{item} </foreach> </if> GROUP BY a.id </select> -- Gitblit v1.8.0