From 97c5552f705e03a3a6e5864e3be6b1078844a4d3 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 09 五月 2024 18:09:33 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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