diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml index 9be21af98..971747011 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml @@ -589,8 +589,8 @@ ( select COUNT(id) from logpm_dis_stock_list_detail - where reservation_id = lddd.bill_lading_id and stock_package_code is NOT null - ) realNum, + where reservation_id = lddd.bill_lading_id and stock_package_code is NOT null AND stock_list_id = lddd.stock_list_id + ) realNum, lddd.id deliveryDetailsId from logpm_distribution_delivery_details lddd LEFT JOIN logpm_distribution_stock_list ldsl on lddd.stock_list_id = ldsl.id