xiaof vor 2 Jahren
Ursprung
Commit
18d0c3c182

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

@@ -305,7 +305,7 @@
                 </if>
             </if>
             <if test="orgId != null">
-                AND b.print_house_id = #{orgId}
+                AND (b.print_house_id = #{orgId} or b.print_house_id is null)
             </if>
         </where>
     </select>
@@ -473,7 +473,7 @@
                 and b.exam_end_time &lt; #{examEndTime}
             </if>
             <if test="orgId != null">
-                AND b.print_house_id = #{orgId}
+                AND (b.print_house_id = #{orgId} or b.print_house_id is null)
             </if>
             </where>
         GROUP BY a.id , a.name , b.exam_start_time , b.exam_end_time , b.exam_place