caozixuan преди 4 години
родител
ревизия
99b0021026
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      distributed-print-business/src/main/resources/mapper/ExamDetailMapper.xml

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