|
@@ -68,9 +68,12 @@
|
|
|
t_a_exam_course_college_teacher a
|
|
|
LEFT JOIN
|
|
|
t_b_exam b ON a.exam_id = b.id
|
|
|
+ LEFT JOIN
|
|
|
+ t_b_exam_course c ON a.exam_id = c.exam_id and a.course_code = c.course_code
|
|
|
<where>
|
|
|
and b.school_id = #{schoolId}
|
|
|
and a.teacher_id = #{teacherId}
|
|
|
+ and c.publish_status = 'PUBLISH'
|
|
|
<if test="semester != null and semester != ''">
|
|
|
and b.semester = #{semester}
|
|
|
</if>
|