From 8f05785d8885f7881c2636413b0b48288b52a372 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 09 五月 2024 18:04:28 +0800 Subject: [PATCH] feat:新增待补考学生记录(时段试卷过期自动保存、考试时间超时保存为待补考) --- src/main/resources/mapper/ExamPaperMapper.xml | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/ExamPaperMapper.xml b/src/main/resources/mapper/ExamPaperMapper.xml index 9a4c638..de8bcd2 100644 --- a/src/main/resources/mapper/ExamPaperMapper.xml +++ b/src/main/resources/mapper/ExamPaperMapper.xml @@ -423,4 +423,19 @@ where a.exam_paper_id = #{id} </select> + <select id="saveMissExamUser" resultType="com.mindskip.xzs.domain.ExamMiss"> + INSERT INTO t_exam_miss(exam_id, user_id) + SELECT a.id, + b.user_id + FROM t_exam_paper a + left join t_exam_paper_user b on a.id = b.exam_paper_id + left join t_exam_paper_answer c on a.id = c.exam_paper_id and c.create_user = b.user_id + WHERE a.id = #{examPaperId} + and c.id is null + </select> + + <select id="selectTimeTaskPaper" resultType="com.mindskip.xzs.domain.ExamPaper"> + select id, limit_end_time from t_exam_paper where paper_type = 4 and limit_end_time >= #{time} and deleted = 0 + </select> + </mapper> -- Gitblit v1.8.0