From bd46f203b0d30a3d33b7c51ae9a528e4807477e1 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 17 九月 2026 17:17:16 +0800
Subject: [PATCH] feat: 1.检验单详情温湿度 2.报告编制样品外观.平均值优化

---
 inspect-server/src/main/resources/mapper/InsReportMapper.xml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/inspect-server/src/main/resources/mapper/InsReportMapper.xml b/inspect-server/src/main/resources/mapper/InsReportMapper.xml
index 1800539..bd95b66 100644
--- a/inspect-server/src/main/resources/mapper/InsReportMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsReportMapper.xml
@@ -66,9 +66,23 @@
         limit 1
     </select>
 
+    <select id="selectDownloadableReport" resultType="com.ruoyi.inspect.pojo.InsReport">
+        select ir.*
+        from ins_report ir
+        where ir.id = #{id}
+          and ir.is_pass = 1
+        <if test="createOrderUser != null">
+          and (ir.write_user_id = #{createOrderUser}
+               or ir.examine_user_id = #{createOrderUser}
+               or ir.ratify_user_id = #{createOrderUser})
+        </if>
+        limit 1
+    </select>
+
     <!-- 鎶ュ憡鎶ヨ〃瀵煎嚭 -->
     <select id="reportAllExport" resultType="com.ruoyi.inspect.dto.InsReportExport">
         select code,
+        case when report_type = 0 then '妫�娴嬫姤鍛�' else '妫�楠屾姤鍛�' end                         report_type_name,
         case when type_source = 0 then '鎴愬搧涓嬪崟' else '鍘熸潗鏂欎笅鍗�' end                    type_source,
         case
         when order_type = '鎶芥' then '鎶芥'

--
Gitblit v1.9.3