|
@@ -126,5 +126,39 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
+ <select id="findDetailPageById"
|
|
|
+ resultType="com.qmth.distributed.print.business.bean.result.ExaminationDetailResult">
|
|
|
+ SELECT
|
|
|
+ stu.id AS id,
|
|
|
+ stu.exam_detail_course_id,
|
|
|
+ stu.student_name AS studentName,
|
|
|
+ stu.student_code AS studentCode,
|
|
|
+ stu.ticket_number AS ticketNumber,
|
|
|
+ stu.site_number AS siteNumber,
|
|
|
+ stu.create_id AS createId,
|
|
|
+ stu.create_time AS createTime,
|
|
|
+ CONCAT(cou.course_name,
|
|
|
+ '(',
|
|
|
+ cou.course_code,
|
|
|
+ ')') AS courseNameCode,
|
|
|
+ cou.paper_number AS paperNumber,
|
|
|
+ det.print_plan_id AS printPlanId,
|
|
|
+ det.print_plan_name AS printPlanName,
|
|
|
+ det.exam_place AS examPlace,
|
|
|
+ det.exam_room AS examRoom
|
|
|
+ FROM
|
|
|
+ exam_student stu
|
|
|
+ INNER JOIN
|
|
|
+ exam_detail_course cou ON stu.exam_detail_course_id = cou.id
|
|
|
+ AND stu.school_id = cou.school_id
|
|
|
+ INNER JOIN
|
|
|
+ exam_detail det ON cou.exam_detail_id = det.id
|
|
|
+ AND stu.school_id = det.school_id
|
|
|
+ <where>
|
|
|
+ <if test="examDetailId != null and examDetailId > 0">
|
|
|
+ AND det.id = #{examDetailId}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|