From afdf7cc772baee20d5afc94d4ec3e3d691c3ed12 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 24 四月 2026 14:15:55 +0800
Subject: [PATCH] 库存管理按照原材料和成品来区分
---
src/main/resources/mapper/production/ProductionProductInputMapper.xml | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductionProductInputMapper.xml b/src/main/resources/mapper/production/ProductionProductInputMapper.xml
index 65e2b96..35691be 100644
--- a/src/main/resources/mapper/production/ProductionProductInputMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductInputMapper.xml
@@ -7,6 +7,7 @@
<result property="productMainId" column="product_main_id"/>
<result property="productModelId" column="product_model_id"/>
<result property="quantity" column="quantity"/>
+ <result property="batchNo" column="batch_no"/>
<result property="tenantId" column="tenant_id"/>
<result property="createTime" column="create_time"/>
</resultMap>
@@ -15,7 +16,8 @@
pm.model as model,
ppm.product_no as productNo,
p.product_name,
- pm.unit
+ pm.unit,
+ pm.material_code as materialCode
from
production_product_input ppi
left join production_product_main ppm on ppm.id = ppi.product_main_id
--
Gitblit v1.9.3