From afebb0ff6b79092519377d943462cc084b9cdb28 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期日, 29 九月 2024 17:59:25 +0800
Subject: [PATCH] 检验下单新增附件,时间,电机编号

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

diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
index 780e279..b03de3c 100644
--- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
@@ -505,6 +505,7 @@
     <select id="selectSampleProductListByOrderId3" resultMap="sampleDto3">
         select isa.id,
         sample_code,
+        motor_number,
         isa.sample,
         entrust_code,
         is_leave,
@@ -740,6 +741,7 @@
         <result property="joinModel" column="join_model" jdbcType="VARCHAR"/>
         <result property="joinName" column="join_name" jdbcType="VARCHAR"/>
         <result property="sampleCode" column="sample_code" jdbcType="VARCHAR"/>
+        <result property="motorNumber" column="motor_number" jdbcType="VARCHAR"/>
         <result property="testRequirements" column="test_requirements" jdbcType="VARCHAR"/>
         <result property="factory" column="factory" jdbcType="VARCHAR"/>
         <result property="laboratory" column="laboratory" jdbcType="VARCHAR"/>
@@ -816,6 +818,7 @@
         <result property="code" column="entrust_code" jdbcType="VARCHAR"/>
         <result property="isLeave" column="is_leave" jdbcType="VARCHAR"/>
         <result property="sampleCode" column="sample_code" jdbcType="VARCHAR"/>
+        <result property="motorNumber" column="motor_number" jdbcType="VARCHAR"/>
         <result property="factory" column="factory" jdbcType="VARCHAR"/>
         <result property="laboratory" column="laboratory" jdbcType="VARCHAR"/>
         <result property="sampleType" column="sample_type" jdbcType="VARCHAR"/>
@@ -901,4 +904,13 @@
         where ins_order_id = #{orderId}
           and ip.id is not null
     </select>
+    <select id="selectInsSample" resultType="com.yuanchu.mom.pojo.InsSample">
+        select isa.*,entrust_code
+        from ins_sample isa
+        left join ins_order io on isa.ins_order_id = io.id
+        where ins_order_id in
+        <foreach collection="ids" open="(" close=")" item="id" separator=",">
+            #{id}
+        </foreach>
+    </select>
 </mapper>

--
Gitblit v1.9.3