Browse Source

fix: 修复 配送客户查询 预约单和 包件循环查询 慢的问题2

pull/7/head
pref_mail@163.com 10 months ago
parent
commit
6dff513ba4
  1. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml

4
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml

@ -1937,14 +1937,14 @@
LEFT JOIN logpm_warehouse_updown_goods AS lwug ON ldpl.id = lwug.association_id and lwug.association_type = 3 LEFT JOIN logpm_warehouse_updown_goods AS lwug ON ldpl.id = lwug.association_id and lwug.association_type = 3
<where> <where>
and packet_bar_status != 2 and packet_bar_status != 2
<if test="reservationId !=null "> <if test="reservationIds !=null ">
and ldrp.reservation_id in and ldrp.reservation_id in
<foreach collection="reservationIds" item="reservationId" open="(" separator="," close=")"> <foreach collection="reservationIds" item="reservationId" open="(" separator="," close=")">
#{reservationId} #{reservationId}
</foreach> </foreach>
</if> </if>
<if test="warehourseId !=null and warehourseId!= ''"> <if test="warehouseId !=null and warehouseId!= ''">
and ldpl.warehouse_id=#{warehourseId} and ldpl.warehouse_id=#{warehourseId}
</if> </if>
</where> </where>

Loading…
Cancel
Save