diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml index 6fc72d26b..1ef2ad855 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml @@ -625,10 +625,13 @@ WHERE ldpll.order_package_loading_status != '20' AND ldpll.order_package_reservation_status !='20' AND ldpll.order_package_status != '70' - AND ldpll.conditions = 1 + AND ldpll.conditions != 2 AND ldsaa.warehouse_id = #{par.warehouseId} AND ldpll.warehouse_id = #{par.warehouseId} AND ldsaa.type_service = #{par.typeService} + + and ldsaa.order_code like concat(#{par.orderCode},'%') + GROUP BY ldsaa.id ) AS t ON t.id = ldsa.id