From fcfbaa84f1fef87a958452ef83d82e140d8ddb59 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期三, 03 七月 2024 17:58:09 +0800
Subject: [PATCH] 2024-7-3 检验对象导入 40%

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

diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
index 0138951..c5e2571 100644
--- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
@@ -25,7 +25,7 @@
     </resultMap>
 
     <select id="findInsSampleAndOrder" resultType="com.yuanchu.mom.vo.InsOrderPlanVO">
-        select * from(
+        select * from(select * from(
         SELECT
         a.*,ios.ins_state,ios.verify_tell,isu2.order_user_id,(ios.verify_user = #{userId}) verify_user
         FROM
@@ -63,6 +63,7 @@
         a.type DESC,
         a.id
         ) b
+        where ins_state is not null)A
         <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
             ${ew.customSqlSegment}
         </if>
@@ -141,6 +142,7 @@
                man_day,
                bsm,
                ask,
+               tell,
                `last_value`,
                ip.ins_result  ip_ins_result,
                state,
@@ -206,7 +208,9 @@
                ipr.equip_name,
                ip.method_s,
                ip.tell,
-               ip.dic
+               ip.dic,
+               ip.temperature,
+               ip.humidity
         from ins_sample isa
                  left join ins_product ip on isa.id = ip.ins_sample_id
                  left join ins_product_result ipr on ip.id = ipr.ins_product_id
@@ -289,7 +293,7 @@
         left join ins_product ip on isa.id = ip.ins_sample_id
         left join ins_product_result ipr on ip.id = ipr.ins_product_id
         left join ins_order io on io.id = ins_order_id
-        where  ip.state = 1
+        where ip.state = 1
         and ins_order_id in
         <foreach collection="ids" open="(" close=")" item="id" separator=",">
             #{id}
@@ -446,6 +450,8 @@
           and state = 1
           and ins_fibers_id is null
     </select>
+    <select id="getReportModel" resultType="java.util.Map">
+    </select>
 
     <resultMap id="sampleDto" type="com.yuanchu.mom.dto.SampleProductDto">
         <id property="id" column="id" jdbcType="INTEGER"/>
@@ -499,6 +505,7 @@
         <result property="manDay" column="man_day" jdbcType="INTEGER"/>
         <result property="bsm" column="bsm" jdbcType="VARCHAR"/>
         <result property="ask" column="ask" jdbcType="VARCHAR"/>
+        <result property="tell" column="tell" jdbcType="VARCHAR"/>
         <result property="lastValue" column="last_value" jdbcType="VARCHAR"/>
         <result property="insResult" column="ip_ins_result" jdbcType="INTEGER"/>
         <result property="state" column="state" jdbcType="INTEGER"/>
@@ -511,6 +518,8 @@
         <result property="methodS" column="method_s"/>
         <result property="tell" column="tell"/>
         <result property="dic" column="dic"/>
+        <result property="temperature" column="temperature"/>
+        <result property="humidity" column="humidity"/>
         <collection property="insProductResult" resultMap="insProductResult"/>
     </resultMap>
 

--
Gitblit v1.9.3