From 4eab53b44135f6381a7f2011ac17066412297f43 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 11 十月 2024 11:15:35 +0800
Subject: [PATCH] 电路试验的站点报告1.0

---
 inspect-server/src/main/resources/mapper/InsSampleMapper.xml |   20 ++++++++++++++++++++
 1 files changed, 20 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..f817aad 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,21 @@
         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>
+    <select id="selectSample" resultType="com.yuanchu.mom.pojo.InsSample">
+        select distinct isa.*
+        from ins_sample isa
+                 left join ins_product ip on isa.id = ip.ins_sample_id
+        where son_laboratory = '鐢佃矾璇曢獙'
+        and state=1
+        and ins_order_id=#{insOrderId}
+    </select>
 </mapper>

--
Gitblit v1.9.3