wangliang 4 년 전
부모
커밋
a5e605f44b

+ 2 - 8
teachcloud-report-business/src/main/resources/mapper/TAExamCourseCollegeInspectMapper.xml

@@ -23,14 +23,11 @@
         join sys_org so on
             so.id = taecci.college_id
         <where>
-            <if test="courseCode != null and courseCode != ''">
-                and taecci.course_code = #{courseCode}
-            </if>
             <if test="examId != null and examId != ''">
                 and taecci.exam_id = #{examId}
             </if>
-            <if test="schoolId != null and schoolId != ''">
-                and taecci.school_id = #{schoolId}
+            <if test="courseCode != null and courseCode != ''">
+                and taecci.course_code = #{courseCode}
             </if>
         </where>
     </select>
@@ -57,9 +54,6 @@
             <if test="examId != null and examId != ''">
                 and taec.exam_id = #{examId}
             </if>
-            <if test="schoolId != null and schoolId != ''">
-                and taec.school_id = #{schoolId}
-            </if>
         </where>
     </select>
 </mapper>

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

@@ -18,7 +18,7 @@
             join t_a_paper_struct taps
             on taps.paper_struct_id = tbps.id
             join t_b_paper tbp
-            on tbp.id = paper_id
+            on tbp.id = tbps.paper_id
         <where>
             <if test="examId != null and examId != ''">
                 and tbp.exam_id = #{examId}