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 23f14b1c5..7da2135cf 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 @@ -847,6 +847,8 @@ left JOIN logpm_warehouse_tray lwt on lwtg.tray_id= lwt.id ldsa.is_deleted = 0 and ldsa.order_status IN ( 10, 20, 30, 40, 50, 60, 70 ) + and ldsa.hand_quantity > 0 + and ldsa.genre = 1 and ldsa.warehouse_id = #{paramMap.warehouseId}