diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml index 8ac7206aa..4a9b6713c 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml @@ -531,7 +531,10 @@ order_package_code = #{orderPackageCode} AND conditions = 2 ) t - LEFT JOIN logpm_distribution_stock_list ldsl ON ldsl.incoming_batch = t.order_code and ldsl.cargo_number=t.material_code + LEFT JOIN logpm_distribution_stock_list ldsl ON ldsl.incoming_batch = t.order_code + where + ldsl.cargo_number=t.material_code + and ldsl.is_deleted=0