caozixuan 4 年之前
父节点
当前提交
b619e3c169

+ 3 - 0
teachcloud-report-business/src/main/resources/mapper/TAExamCourseCollegeTeacherMapper.xml

@@ -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>