From 07ef4ae0fc211fbe6006c525002ed65ce854a1f2 Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期四, 30 十一月 2023 14:02:48 +0800 Subject: [PATCH] 重置试卷 --- src/main/resources/mapper/ExamPaperAnswerMapper.xml | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mapper/ExamPaperAnswerMapper.xml b/src/main/resources/mapper/ExamPaperAnswerMapper.xml index 5c57a63..4c9ca19 100644 --- a/src/main/resources/mapper/ExamPaperAnswerMapper.xml +++ b/src/main/resources/mapper/ExamPaperAnswerMapper.xml @@ -274,17 +274,25 @@ <select id="adminPage" resultMap="BaseResultMap" parameterType="com.mindskip.xzs.viewmodel.admin.paper.ExamPaperAnswerPageRequestVM"> SELECT - <include refid="Base_Column_List"/> - FROM t_exam_paper_answer + a.id, a.exam_paper_id, a.paper_name, a.paper_type, a.subject_id, a.system_score, a.user_score, + a.paper_score, a.question_correct, a.question_count, a.do_time, a.status, a.create_user, a.create_time, + a.task_exam_id, u.real_name as userName + FROM t_exam_paper_answer a + left join t_user u on a.create_user = u.id <where> <if test="subjectId != null"> - and subject_id = #{subjectId} + and a.subject_id = #{subjectId} </if> <if test="paperName != null and paperName != ''"> - and paper_name like concat('%',#{paperName},'%') + and a.paper_name like concat('%',#{paperName},'%') + </if> + <if test="userName != null and userName != ''"> + and u.real_name like concat('%',#{userName},'%') </if> </where> </select> + + <select id="getById" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List"/> -- Gitblit v1.8.0