From 05d651ca0168025ec451702f1df88dab4f2a9559 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期五, 10 五月 2024 17:58:19 +0800 Subject: [PATCH] feat:新增补考按钮 --- src/main/resources/mapper/UserMapper.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml index bf9ec38..62be0a3 100644 --- a/src/main/resources/mapper/UserMapper.xml +++ b/src/main/resources/mapper/UserMapper.xml @@ -494,4 +494,18 @@ tu.id desc </select> + <select id="getUserByExam" resultType="com.mindskip.xzs.domain.User"> + <![CDATA[ + SELECT + d.* + FROM t_exam_paper a + left join t_exam_paper_user b on a.id = b.exam_paper_id and b.deleted = 0 + left join t_exam_paper_answer c on a.id = c.exam_paper_id and c.create_user = b.user_id + left join t_user d on b.user_id = d.id + WHERE a.id = #{id} + and (c.id is null or (user_score / paper_score) < 0.6) + and b.user_id = #{createUser} + ]]> + </select> + </mapper> -- Gitblit v1.8.0