From 239c97e6701bc5ee5a1b9b890003dd6cd2132f48 Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期一, 19 六月 2023 10:20:54 +0800 Subject: [PATCH] 统计 --- src/main/resources/mapper/QuestionMapper.xml | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mapper/QuestionMapper.xml b/src/main/resources/mapper/QuestionMapper.xml index 32bd2f8..e038345 100644 --- a/src/main/resources/mapper/QuestionMapper.xml +++ b/src/main/resources/mapper/QuestionMapper.xml @@ -192,10 +192,11 @@ and q.grade_level= #{level} </if> <if test="subjectId != null "> - and qs.subject_id = + and qs.subject_id in + <foreach item="subjectId" collection="subjectId" open="(" separator="," + close=")"> #{subjectId} - - + </foreach> </if> <if test="questionType != null "> and q.question_type= #{questionType} -- Gitblit v1.8.0