From e691b3282287a247f92e7301d778cdbb1fe4eaab Mon Sep 17 00:00:00 2001 From: 罗媛媛 <2454262093@qq.com> Date: 星期一, 01 四月 2024 17:58:48 +0800 Subject: [PATCH] 功能调整 --- inspect-server/src/main/resources/mapper/InsProductMapper.xml | 7 ++++--- 1 files changed, 4 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..c51b9d4 100644 --- a/inspect-server/src/main/resources/mapper/InsProductMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsProductMapper.xml @@ -41,8 +41,9 @@ </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> </mapper> -- Gitblit v1.9.3