caozixuan пре 4 година
родитељ
комит
99b0021026

+ 3 - 0
distributed-print-business/src/main/resources/mapper/ExamDetailMapper.xml

@@ -241,6 +241,9 @@
          JOIN
             exam_detail b ON a.id = b.print_plan_id
         <where>
+            <if test="schoolId != null and schoolId > 0">
+                a.school_id = #{schoolId}
+            </if>
             <if test="printPlanId != null and printPlanId != ''">
                 a.id = #{printPlanId}
             </if>