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>