|
@@ -245,17 +245,21 @@
|
|
|
es.id = ms.id)
|
|
|
</select>
|
|
|
|
|
|
- <select id="queryByExamIdAndPaperNumber" resultType="com.qmth.distributed.print.business.bean.dto.ExamStudentDto">
|
|
|
+ <select id="queryExamStudent" resultType="com.qmth.distributed.print.business.bean.dto.ExamStudentDto">
|
|
|
SELECT
|
|
|
GROUP_CONCAT(DISTINCT es.teach_clazz_name) as clazzNames,
|
|
|
GROUP_CONCAT(DISTINCT su.real_name) as teacherNames
|
|
|
FROM
|
|
|
exam_student es
|
|
|
left join sys_user su on su.id = es.teacher_id
|
|
|
+ left join exam_detail_course edc on edc.id = exam_detail_course_id
|
|
|
<where>
|
|
|
<if test="examId != null and examId != ''">
|
|
|
AND es.exam_id = #{examId}
|
|
|
</if>
|
|
|
+ <if test="courseCode != null and courseCode != ''">
|
|
|
+ AND edc.course_code = #{courseCode}
|
|
|
+ </if>
|
|
|
<if test="paperNumber != null and paperNumber != ''">
|
|
|
AND es.paper_number = #{paperNumber}
|
|
|
</if>
|