From 61f1de60e6f58dd8e19f01c56f2e56e40885d65b Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 23 六月 2026 17:39:58 +0800
Subject: [PATCH] 点击发货-》发货审核-》出厂质检-》出库审核-》出库通过

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

diff --git a/src/main/resources/mapper/quality/QualityInspectMapper.xml b/src/main/resources/mapper/quality/QualityInspectMapper.xml
index 6086121..a324820 100644
--- a/src/main/resources/mapper/quality/QualityInspectMapper.xml
+++ b/src/main/resources/mapper/quality/QualityInspectMapper.xml
@@ -5,7 +5,7 @@
         SELECT
         qi.*,
         <choose>
-            <when test="qualityInspect.inspectType == 0">
+            <when test="qualityInspect.inspectType != 2">
                 pl.purchase_contract_number as purchase_contract_no
             </when>
             <otherwise>
@@ -16,7 +16,7 @@
         FROM
         quality_inspect qi
         <choose>
-            <when test="qualityInspect.inspectType == 0 ">
+            <when test="qualityInspect.inspectType != 2 ">
                 LEFT JOIN purchase_ledger pl ON pl.id = qi.purchase_ledger_id
             </when>
             <otherwise>
@@ -471,5 +471,16 @@
 
     </select>
 
+    <select id="selectProductModelById" resultType="com.ruoyi.basic.pojo.ProductModel">
+        SELECT id, product_id, model, unit
+        FROM product_model
+        WHERE id = #{id}
+    </select>
+
+    <select id="selectProductById" resultType="com.ruoyi.basic.pojo.Product">
+        SELECT id, product_name
+        FROM product
+        WHERE id = #{id}
+    </select>
 
 </mapper>

--
Gitblit v1.9.3