From edbb9450c78019e7cea4bfb0d0496782e90a4a43 Mon Sep 17 00:00:00 2001
From: 罗媛媛 <2454262093@qq.com>
Date: 星期一, 01 四月 2024 15:22:15 +0800
Subject: [PATCH] 功能调整

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

diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
index b5effec..f376e77 100644
--- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
@@ -29,7 +29,7 @@
     <select id="findInsSampleAndOrder" resultType="com.yuanchu.mom.vo.InsOrderPlanVO">
         select * from(
         SELECT
-        *
+        a.*,ios.ins_state,ios.verify_tell
         FROM
         (
         SELECT
@@ -41,7 +41,6 @@
         io.sample_type,
         isu.user_id,
         ip.son_laboratory,
-        io.ins_state,
         io.ins_result
         FROM
         ins_order io
@@ -56,6 +55,7 @@
         ip.son_laboratory,
         io.id
         ) a
+        LEFT JOIN ins_order_state ios ON ios.ins_order_id = a.id AND ios.laboratory = a.son_laboratory
         where a.user_id = #{userId} OR a.user_id is NULL
         ORDER BY
         a.user_id DESC,

--
Gitblit v1.9.3