From 17ea3e9ec4f49b3652ff8a1e7dc9af502503d3f0 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期三, 09 四月 2025 13:30:02 +0800
Subject: [PATCH] 成品下单查询拼接检验人

---
 inspect-server/src/main/resources/mapper/InsProductMapper.xml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/inspect-server/src/main/resources/mapper/InsProductMapper.xml b/inspect-server/src/main/resources/mapper/InsProductMapper.xml
index 7d92da9..b2e6807 100644
--- a/inspect-server/src/main/resources/mapper/InsProductMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsProductMapper.xml
@@ -141,4 +141,20 @@
         where io2.id = #{orderId}
         and ip.is_binding != 1
     </select>
+
+    <!-- 鏍规嵁璁㈠崟鏌ヨ浜у搧id -->
+    <select id="selectProductByOrderId" resultType="com.ruoyi.inspect.pojo.InsProduct">
+        select ip.*, is2.sample_code
+        from ins_product ip
+                 left join ins_sample is2 on is2.id = ip.ins_sample_id
+        where is2.ins_order_id = #{orderId}
+    </select>
+
+    <update id="batchUpdateInsProductCheckUserId">
+        UPDATE ins_product SET check_user_id = #{checkUserId}
+        WHERE ID IN
+        <foreach collection="insProductIds" open="(" close=")" item="item" separator=",">
+            #{item}
+        </foreach>
+    </update>
 </mapper>

--
Gitblit v1.9.3