From c7e24959364e65e6632e71546d607433560bb403 Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期六, 06 四月 2024 17:46:30 +0800
Subject: [PATCH] 检验任务的缺漏代码

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

diff --git a/inspect-server/src/main/resources/mapper/InsProductMapper.xml b/inspect-server/src/main/resources/mapper/InsProductMapper.xml
index 220c796..608bf85 100644
--- a/inspect-server/src/main/resources/mapper/InsProductMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsProductMapper.xml
@@ -41,8 +41,12 @@
     </resultMap>
 
     <select id="selectOrderManDay" resultType="java.lang.Integer">
-        select coalesce(max(ip.man_day), 0) from ins_sample i
-        left join ins_product ip on i.id = ip.ins_sample_id
-        where i.id = #{sampleId}
+        select coalesce(max(ip.man_day), 0) from ins_order io
+        left join ins_sample isa on io.id = isa.ins_order_id
+        left join ins_product ip on isa.id = ip.ins_sample_id
+        where io.id = #{orderId}
+    </select>
+    <select id="selectUserById" resultType="java.util.Map">
+        select name,company,phone,address from user where id = #{userId}
     </select>
 </mapper>

--
Gitblit v1.9.3