diff --git a/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/TrunklinePickupMapper.xml b/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/TrunklinePickupMapper.xml index 82dceb980..52b9a0fbc 100644 --- a/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/TrunklinePickupMapper.xml +++ b/blade-service/logpm-report/src/main/java/com/logpm/report/mapper/TrunklinePickupMapper.xml @@ -295,7 +295,7 @@ when ifnull(ldsa.type_service, '1') = '4' then '三方中转' end as type_service, count(distinct t.order_code) orderNum, sum(t.quantity) num from logpm_distribution_parcel_list t - join logpm_distribution_stock_article ldsa on ldsa.order_code = t.order_code and ldsa.is_deleted = 0 + join logpm_distribution_stock_article ldsa on ldsa.id = t.stock_article_id and ldsa.is_deleted = 0 left join logpm_warehouse_warehouse lww on lww.id = t.warehouse_id where t.warehouse_entry_time_end >= #{query.startCreateTime} and t.warehouse_entry_time_end <= #{query.endCreateTime} and t.is_transfer = 0 and ldsa.type_service != '2'