caozixuan 3 anos atrás
pai
commit
7f43c108e4

+ 2 - 2
distributed-print-business/src/main/resources/mapper/ExamDetailCourseMapper.xml

@@ -65,7 +65,7 @@
                 LEFT JOIN
             exam_detail b ON a.exam_detail_id = b.id
         <where>
-            <if test="printPlanIdList.size() > 0">
+            <if test="printPlanIdList != null and printPlanIdList.size() > 0">
                 and b.print_plan_id IN
                 <foreach collection="printPlanIdList" item="item" index="index" open="(" separator="," close=")">
                     #{item}
@@ -86,7 +86,7 @@
                 LEFT JOIN
             exam_detail b ON a.exam_detail_id = b.id
         <where>
-            <if test="printPlanIdList.size() > 0">
+            <if test="printPlanIdList != null and printPlanIdList.size() > 0">
                 and b.print_plan_id IN
                 <foreach collection="printPlanIdList" item="item" index="index" open="(" separator="," close=")">
                     #{item}