From b661bcf7e065092c876e052bad0bfaecb9dc0c17 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期二, 12 十一月 2024 21:21:06 +0800
Subject: [PATCH] 优化错题查询
---
src/main/resources/mapper/ExamPaperScoreMapper.xml | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/ExamPaperScoreMapper.xml b/src/main/resources/mapper/ExamPaperScoreMapper.xml
index a29bf61..0c5d29f 100644
--- a/src/main/resources/mapper/ExamPaperScoreMapper.xml
+++ b/src/main/resources/mapper/ExamPaperScoreMapper.xml
@@ -149,6 +149,9 @@
<if test="examName != null and examName != ''">
AND INSTR(t.exam_name, #{examName})
</if>
+ <if test="examId != null and examId != ''">
+ AND t.id = #{examId}
+ </if>
</where>
GROUP BY t.id
ORDER BY t.id DESC
@@ -167,4 +170,13 @@
GROUP BY a.id
</select>
+ <select id="selectByUserId" resultType="com.ycl.jxkg.domain.entity.ExamPaperScore">
+ SELECT
+ <include refid="Base_Column_List"/>
+ from t_exam_paper_score
+ where user_id = #{userId}
+ </select>
+ <select id="selectWrong" resultType="com.ycl.jxkg.domain.vo.student.wrong.WrongResponseVO">
+
+ </select>
</mapper>
--
Gitblit v1.8.0