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}