From a902b3ea7d5ec9b73c9ab54d09a6ab23fd5acb35 Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期五, 16 六月 2023 15:27:46 +0800 Subject: [PATCH] 答卷管理 --- src/main/resources/mapper/ExamPaperMapper.xml | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/resources/mapper/ExamPaperMapper.xml b/src/main/resources/mapper/ExamPaperMapper.xml index c3ae32c..c835797 100644 --- a/src/main/resources/mapper/ExamPaperMapper.xml +++ b/src/main/resources/mapper/ExamPaperMapper.xml @@ -256,14 +256,17 @@ <select id="taskExamPage" resultMap="BaseResultMap" parameterType="com.mindskip.xzs.viewmodel.admin.exam.ExamPaperPageRequestVM"> SELECT - <include refid="Base_Column_List"/> - FROM t_exam_paper + e.* + FROM t_exam_paper e + LEFT JOIN t_exam_paper_department s on s.exam_paper_id = e.id <where> - and deleted=0 - and task_exam_id is null - and grade_level= #{level} - and paper_type=#{paperType} + and e.deleted=0 and s.deleted = 0 + and e.task_exam_id is null + and s.department_id = + #{level} + and e.paper_type=#{paperType} </where> + group by e.id </select> <select id="studentPage" resultMap="BaseResultMap" parameterType="com.mindskip.xzs.viewmodel.student.exam.ExamPaperPageVM"> -- Gitblit v1.8.0