diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml index d5fabdffe..ae1b8dd7e 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml @@ -433,7 +433,7 @@ GROUP_CONCAT(DISTINCT ANY_VALUE(ldsa.consignee_person)) AS customerName, GROUP_CONCAT(DISTINCT ANY_VALUE(ldsa.consignee_mobile)) AS customerTelephone FROM logpm_distrilbution_bill_lading ldbl - LEFT JOIN logpm_distrilbution_bill_stock ldbs ON ldbl.id = ldbs.bill_lading_id + LEFT JOIN logpm_distrilbution_bill_stock ldbs ON ldbl.id = ldbs.bill_lading_id AND order_status != '2' LEFT JOIN logpm_distribution_stock_article ldsa ON ldbs.stock_article_id = ldsa.id WHERE ldbl.id = #{id} GROUP BY ldbl.id;