From a69fa824ccbaf290034347bce47fa84f067e862b Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 21 Jan 2026 15:38:57 +0800 Subject: [PATCH] =?UTF-8?q?2026-01-21=20=E6=94=B6=E8=B4=A7=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E4=BB=BB=E5=8A=A1=E9=80=9A=E7=9F=A5=E5=92=8C=E6=8B=A3?= =?UTF-8?q?=E8=B4=A7=E5=87=BA=E5=BA=93=E4=BB=BB=E5=8A=A1=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=EF=BC=8C=E5=85=B3=E8=81=94=E5=8D=95=E5=8F=B7=E5=92=8C=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=8D=95=E8=A1=8C=E5=8F=B7=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inboundNotification/InboundNotificationDetailMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/mapper/inboundNotification/InboundNotificationDetailMapper.xml b/src/main/resources/mapper/inboundNotification/InboundNotificationDetailMapper.xml index 96ccc09..c35cad6 100644 --- a/src/main/resources/mapper/inboundNotification/InboundNotificationDetailMapper.xml +++ b/src/main/resources/mapper/inboundNotification/InboundNotificationDetailMapper.xml @@ -189,7 +189,8 @@ pr.RollNo as rollNo, pr.RollQty as requiredQty, pr.remark, - c.inbound_warehouse_id as inboundWarehouseId + c.inbound_warehouse_id as inboundWarehouseId, + RIGHT(a.OrderNo, CHARINDEX('-', REVERSE(a.OrderNo)) - 1) AS relatedOrderLineNo FROM ShopOrder a INNER JOIN SFDC_Rolls pr ON a.site = pr.site AND a.bu_no = pr.bu_no AND a.OrderNo = pr.OrderNo LEFT JOIN inbound_notification_detail b ON pr.Site = b.site AND pr.bu_no = b.bu_no AND pr.OrderNo = b.related_order_no AND pr.RollNo = b.roll_no