From 0ddfee9b7b9fc7acfe600d1e42908b1dc19c1d85 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 11 Nov 2025 15:53:40 +0800 Subject: [PATCH] =?UTF-8?q?2025-11-11=20pda=E7=94=9F=E4=BA=A7=E9=A2=86?= =?UTF-8?q?=E6=96=99=20-=20=E7=89=A9=E6=96=99=E6=B8=85=E5=8D=95sql?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/productionPicking/ProductionPickingMapper.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mapper/productionPicking/ProductionPickingMapper.xml b/src/main/resources/mapper/productionPicking/ProductionPickingMapper.xml index 7a434aa..30421bb 100644 --- a/src/main/resources/mapper/productionPicking/ProductionPickingMapper.xml +++ b/src/main/resources/mapper/productionPicking/ProductionPickingMapper.xml @@ -104,13 +104,15 @@ b.NotifyNo as outboundNo, b.bu AS buNo, a.ComponentPartNo AS partNo, - P.PartDescription AS part_desc, + P.PartDescription AS partDesc, SUM(CAST(a.QtyToIssue AS float)) as requiredQty, - dbo.Get_InboundQty(a.site, B.bu, a.NotifyNo, SOOrderNo,SeqNo, 'soi') as pickedQty + sum(ISNULL(a.actual_out_qty,0)) as pickedQty , + SUM(ISNULL(S.RollQty,0)) as scansQty --本次扫描数量 from SOIssueNotifyHeader B INNER JOIN SOIssueNotifyOrderList C ON B.SITE = C.SITE AND B.NotifyNo = C.NotifyNo INNER JOIN SOIssueNotifyOrderMaterialList a ON A.SITE = C.SITE AND A.NotifyNo = C.NotifyNo AND C.ItemNo = A.ItemNo INNER JOIN PART P ON A.SITE = P.SITE AND A.ComponentPartNo = P.PARTNO + LEFT JOIN ScannedRollTempTable S ON A.Site = S.site AND A.ComponentPartNo = S.part_no AND C.SOOrderNo = S.OrderNo where a.site = #{site} AND b.bu = #{buNo} @@ -119,7 +121,7 @@ AND a.warehouse_id = #{warehouseId} AND B.NotifyNo = #{outboundNo} AND C.SOOrderNo = #{relatedNo} - GROUP BY b.site, b.NotifyNo, b.bu ,b.NotifyDate, a.ComponentPartNo, P.PartDescription,SOOrderNo,SeqNo + GROUP BY b.site, b.NotifyNo, b.bu , a.ComponentPartNo, P.PartDescription