From ac027c15efa02479d396a973fa4983b7729df3fd Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Mon, 21 Aug 2023 21:28:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E6=8F=90=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=9F=A5=E8=AF=A2=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/DistrilbutionBillLadingMapper.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 aa8e79a78..565384c94 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 @@ -30,7 +30,18 @@ select dbl.id,dsa.service_number serviceNumber,dsa.waybill_number waybillNumber,dsa.consignee_unit consigneeUnit,dsa.customer_name customerName,dsa.customer_telephone customerTelephone,dsa.warehouse,dsa.warehouse_entry_time warehouseEntryTime,dsa.storage_fee storageFee,dsa.total_number totalNumber,dbl.certificate_type certificateType, dsa.brand,dsa.type_service typeService,dbl.pick_up_time pickUpTime,dbl.consignee,dbl.delivery_document deliveryDocument,dbl.conditions,dbl.total_cost totalCost, - dbl.pick_up_plate pickUpPlate + dbl.pick_up_plate pickUpPlate,dbl.pickup_batch pickupBatch, + ( + select COUNT(lds.id) + from logpm_distribution_delivery_details lddd + LEFT JOIN logpm_distribution_stock lds on lds.stock_list_id = lddd.stock_list_id + where lddd.bill_lading_id = dbl.id + ) + ( + select COUNT(lds.id) + from logpm_distrilbution_bill_stock ldbs + LEFT JOIN logpm_distribution_stock lds on lds.stock_article = ldbs.stock_article_id + where ldbs.bill_lading_id = dbl.id + ) stopNum from logpm_distrilbution_bill_lading dbl LEFT JOIN logpm_distribution_stock_article dsa on dbl.stock_article_id = dsa.id