瀏覽代碼

fix:bug 教务处老师看板查询没加考试id

caozixuan 3 年之前
父節點
當前提交
e169873e67

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

@@ -113,6 +113,7 @@
         LEFT JOIN
         t_b_exam b ON a.exam_id = b.id
         join t_b_exam_course tbec on
+            tbec.exam_id = a.exam_id and
             tbec.course_code = a.course_code
         <where>
             and b.school_id = #{schoolId}
@@ -203,6 +204,7 @@
         LEFT JOIN
         t_b_exam b ON a.exam_id = b.id
         join t_b_exam_course tbec on
+        tbec.exam_id = a.exam_id and
         tbec.course_code = a.course_code
         <where>
             and b.school_id = #{schoolId}

+ 1 - 0
teachcloud-report-business/src/main/resources/mapper/TAExamCourseMapper.xml

@@ -110,6 +110,7 @@
                 LEFT JOIN
             t_b_exam b ON a.exam_id = b.id
             join t_b_exam_course tbec on
+                tbec.exam_id = a.exam_id and
                 tbec.course_code = a.course_code
         <where>
             <if test="schoolId != null">

+ 1 - 0
teachcloud-report-business/src/main/resources/mapper/TAExamTotalMapper.xml

@@ -58,6 +58,7 @@
         LEFT JOIN
         t_b_exam b ON a.exam_id = b.id
         join t_b_exam_course tbec on
+        tbec.exam_id = a.exam_id and
         tbec.course_code = a.course_code
         <where>
             and b.school_id = #{schoolId}