From 995bb063a3ac765c53447320e450fb6fc835c9d2 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 24 四月 2026 13:29:23 +0800
Subject: [PATCH] fix: 库存导入新增厚度,库存管理返回厚度字段

---
 src/main/resources/mapper/stock/StockInventoryMapper.xml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/stock/StockInventoryMapper.xml b/src/main/resources/mapper/stock/StockInventoryMapper.xml
index 6428e9c..3fd669c 100644
--- a/src/main/resources/mapper/stock/StockInventoryMapper.xml
+++ b/src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -107,6 +107,7 @@
             MAX(warn_num) as warn_num,
             MAX(version) as version,
             model,
+            thickness,
             MAX(remark) as remark,
             unit,
             product_name,
@@ -128,6 +129,7 @@
             si.version,
             (si.qualitity - COALESCE(si.locked_quantity, 0)) as un_locked_quantity,
             pm.model,
+            pm.thickness,
             si.remark,
             pm.unit,
             p.product_name,
@@ -153,6 +155,7 @@
             su.version,
             (su.qualitity - COALESCE(su.locked_quantity, 0)) as un_locked_quantity,
             pm.model,
+            pm.thickness,
             su.remark,
             pm.unit,
             p.product_name,
@@ -172,7 +175,7 @@
                 and combined.product_id in (select id from product_tree)
             </if>
         </where>
-        group by product_model_id, model, unit, product_name, product_id
+        group by product_model_id, model, thickness, unit, product_name, product_id
     </select>
     <select id="listStockInventoryExportData" resultType="com.ruoyi.stock.execl.StockInventoryExportData">
         WITH RECURSIVE product_tree AS (

--
Gitblit v1.9.3