From c7cf4606c748e3ef2a4df1811b60e0ef000ff9e8 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 24 四月 2026 13:43:45 +0800
Subject: [PATCH] fix: 库存导入导出缺失厚度
---
src/main/resources/mapper/stock/StockInventoryMapper.xml | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/stock/StockInventoryMapper.xml b/src/main/resources/mapper/stock/StockInventoryMapper.xml
index 3fd669c..b3b3767 100644
--- a/src/main/resources/mapper/stock/StockInventoryMapper.xml
+++ b/src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -195,6 +195,7 @@
SUM(qualifiedLockedQuantity) as qualifiedLockedQuantity,
SUM(unQualifiedLockedQuantity) as unQualifiedLockedQuantity,
model,
+ thickness,
unit,
product_name,
MAX(warn_num) as warn_num,
@@ -212,6 +213,7 @@
COALESCE(si.warn_num, 0) as warn_num,
si.remark,
pm.model,
+ pm.thickness,
pm.unit,
p.product_name,
p.id as product_id
@@ -232,6 +234,7 @@
0 as warn_num,
su.remark,
pm.model,
+ pm.thickness,
pm.unit,
p.product_name,
p.id as product_id
@@ -250,8 +253,9 @@
and combined.product_id in (select id from product_tree)
</if>
</where>
- group by product_model_id, model, unit, product_name
+ group by product_model_id, model, thickness, unit, product_name
</select>
+
<select id="stockInventoryPage" resultType="com.ruoyi.stock.dto.StockInRecordDto">
select sir.*,si.qualitity as current_stock,
pm.model,
--
Gitblit v1.9.3