Browse Source

fix: 修复预约单查询缓慢的问题

pull/30/head
pref_mail@163.com 9 months ago
parent
commit
bf26a3ebf5
  1. 7
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml

7
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml

@ -625,7 +625,12 @@
WHERE ldpll.order_package_loading_status != '20'
AND ldpll.order_package_reservation_status !='20'
AND ldpll.order_package_status != '70'
GROUP BY ldsaa.id)
AND ldpll.conditions = 1
AND ldsaa.warehouse_id = #{par.warehouseId}
AND ldpll.warehouse_id = #{par.warehouseId}
AND ldsa.type_service = #{par.typeService}
GROUP BY ldsaa.id
)
AS t ON t.id = ldsa.id
<where>
ldsa.order_status in ('10','20','30','70')

Loading…
Cancel
Save