From 0f79bd8c70a6122794aafac0d9373613a75f3e4c Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期三, 01 四月 2026 11:24:20 +0800
Subject: [PATCH] 质检新增出库检验报告下载功能

---
 src/main/resources/mapper/quality/QualityInspectMapper.xml |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/quality/QualityInspectMapper.xml b/src/main/resources/mapper/quality/QualityInspectMapper.xml
index 27a69ce..c2bcab9 100644
--- a/src/main/resources/mapper/quality/QualityInspectMapper.xml
+++ b/src/main/resources/mapper/quality/QualityInspectMapper.xml
@@ -443,6 +443,55 @@
         ORDER BY rn;
 
     </select>
+    <select id="selectOneData" resultType="com.ruoyi.quality.pojo.QualityInspect">
+        select id,
+               inspect_type,
+               check_time,
+               production_date,
+               supplier,
+               customer,
+               process,
+               check_name,
+               product_id,
+               product_name,
+               model,
+               unit,
+               quantity,
+               check_company,
+               check_result,
+               create_time,
+               create_user,
+               update_time,
+               update_user,
+               tenant_id,
+               inspect_state,
+               purchase_ledger_id,
+               product_main_id,
+               defective_phenomena,
+               product_model_id,
+               test_standard_id,
+               inspected_quantity,
+
+               case
+                   when inspect_material_condition = '妫�楠岀敤娑插墏鎯呭喌' then
+                       '鈽�'
+                   else
+                       '鈽�'
+                   end as inspect_material_condition_a,
+               case
+                   when inspect_material_condition = '妫�楠岀敤绮夊墏鎯呭喌' then
+                       '鈽�'
+                   else
+                       '鈽�'
+                   end as inspect_material_condition_b,
+
+               validity_date,
+               manufacturing_team,
+               batch_no
+
+        from quality_inspect
+        where id = #{id};
+    </select>
 
 
 </mapper>

--
Gitblit v1.9.3