From 00952e11d9c2f7be5277a4d752cd5dd0796301cd Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 18 四月 2024 17:57:39 +0800
Subject: [PATCH] 资质明细修改+检测项目统计

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

diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
index e87d717..5045af2 100644
--- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
@@ -145,9 +145,13 @@
                ip.update_user ip_update_user,
                ip.create_time ip_create_time,
                ip.update_time ip_update_time,
-               template_id
+               template_id,
+               ipr.ins_value,
+               ipr.com_value,
+               ipr.equip_value
         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
         where ins_order_id = #{id}
         and state = 1
         and ip.son_laboratory = #{laboratory}

--
Gitblit v1.9.3