From e27be4fab253dd38158bd345735bfc05d4a8b6fe Mon Sep 17 00:00:00 2001 From: kilo Date: Sat, 11 Nov 2023 16:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E8=BD=A6=E5=88=97=E8=A1=A8=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E5=93=81=E6=95=B0=E9=87=8F=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distribution/mapper/DistributionDeliveryInfoMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml index 71ac1382b..3bcb8765d 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml @@ -348,7 +348,7 @@ ) ordNub, COALESCE ( lds.received_quantity + lds.receivedin_quantity, 0 ) signNub, ldsk.stockup_area stockupArea, - COALESCE ( ldrs.reservation_num, 0 ) inventoryNub + (SELECT SUM(reservation_num) FROM logpm_distribution_reservation_stocklist WHERE reservation_id = ldr.id ) inventoryNub -- COUNT(DISTINCT lwtg.tray_id) AS trayNum FROM logpm_distribution_signfor lds