From f2123ad78adc82f6a3e69a5603b6c0b110025236 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 10 五月 2024 12:00:37 +0800
Subject: [PATCH] refactor:缺考新需求,移除延时保存补考用户功能

---
 src/main/resources/mapper/QuestionSubjectMapper.xml |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/QuestionSubjectMapper.xml b/src/main/resources/mapper/QuestionSubjectMapper.xml
index 5811325..24ef74e 100644
--- a/src/main/resources/mapper/QuestionSubjectMapper.xml
+++ b/src/main/resources/mapper/QuestionSubjectMapper.xml
@@ -55,4 +55,13 @@
         where subject_id = #{id} and qs.deleted = 0 and s.deleted = 0
     </select>
 
-</mapper>
\ No newline at end of file
+    <select id="countQuestionNum" resultType="integer">
+        SELECT
+               count(distinct id)
+        FROM
+             t_question_subject
+        WHERE
+              subject_id IN <foreach collection="subjects" open="(" separator="," close=")" item="subjectId">#{subjectId}</foreach>
+    </select>
+
+</mapper>

--
Gitblit v1.8.0