From 1f16aa96a1f88be11f33efcb2862218be4342e44 Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期五, 16 六月 2023 09:16:13 +0800 Subject: [PATCH] 搜索修改 --- src/main/resources/mapper/QuestionMapper.xml | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mapper/QuestionMapper.xml b/src/main/resources/mapper/QuestionMapper.xml index d994330..32bd2f8 100644 --- a/src/main/resources/mapper/QuestionMapper.xml +++ b/src/main/resources/mapper/QuestionMapper.xml @@ -192,11 +192,9 @@ and q.grade_level= #{level} </if> <if test="subjectId != null "> - and qs.subject_id in - <foreach item="subjectId" collection="subjectId" open="(" separator="," - close=")"> + and qs.subject_id = #{subjectId} - </foreach> + </if> <if test="questionType != null "> @@ -206,6 +204,7 @@ and q.info_text_content_id in (SELECT id FROM t_text_content WHERE content like concat('%',#{content},'%') ) </if> </where> + group by q.id </select> -- Gitblit v1.8.0