caozixuan 3 년 전
부모
커밋
a7d8a2a165
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      distributed-print-business/src/main/resources/mapper/ExamPrintPlanMapper.xml

+ 1 - 1
distributed-print-business/src/main/resources/mapper/ExamPrintPlanMapper.xml

@@ -64,7 +64,7 @@
             <if test="schoolId != null and schoolId != ''">
                 and a.school_id = #{schoolId}
             </if>
-            <if test="printPlanIdList != null">
+            <if test="printPlanIdList != null and printPlanIdList.size() > 0">
                 and a.id IN
                 <foreach collection="printPlanIdList" item="item" index="index" open="(" separator="," close=")">
                     #{item}