From 9b4d7e6bfa0eabaeedd26af53db6ba69b748a33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Thu, 13 Aug 2026 13:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=93=81=E6=B5=81=E7=A8=8Bok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/qms/QcMapper.xml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main/resources/mapper/qms/QcMapper.xml b/src/main/resources/mapper/qms/QcMapper.xml index 5d45af2..20ac71b 100644 --- a/src/main/resources/mapper/qms/QcMapper.xml +++ b/src/main/resources/mapper/qms/QcMapper.xml @@ -2953,6 +2953,8 @@ a.site, a.bu_no, a.inspection_no, + -- 明细唯一顺序号:用于前端回传后精确更新对应明细行,避免同 item_no 多行被互相覆盖 + a.order_id, a.template_id, a.sampling_level_no, a.sampling_level_desc, @@ -3046,7 +3048,20 @@ sampling_qty = #{samplingQty,jdbcType=DECIMAL}, text_value = #{textValue}, number_value = #{numberValue,jdbcType=DECIMAL} - WHERE inspection_no = #{inspectionNo} and item_no = #{itemNo} and site = #{site} and bu_no = #{buNo} + WHERE inspection_no = #{inspectionNo} + and site = #{site} + and bu_no = #{buNo} + + + + and order_id = #{orderId,jdbcType=INTEGER} + + + + and item_no = #{itemNo} + and object_id = #{objectId} + +