From ada06626c3f81258e01837d09a10135f8ec3232f Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期六, 28 三月 2026 16:06:30 +0800
Subject: [PATCH] refactor: 生产报工参数与投入表分离
---
src/main/resources/mapper/production/ProductionProductMainMapper.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductionProductMainMapper.xml b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
index d9cd9e4..798c2b9 100644
--- a/src/main/resources/mapper/production/ProductionProductMainMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -19,16 +19,16 @@
select ppm.*,
ppm.post_name as postName,
po.nps_no as npsNo,
+ po.strength as strength,
pms.material_code as materialCode,
pm.product_name as productName,
pms.model as productModelName,
- IFNULL(ppi.quantity, 0) as totalQuantity,
+ IFNULL(ppo.total_quantity, 0) as totalQuantity,
IFNULL(ppo.scrap_qty, 0) as scrapQty,
IFNULL(ppo.quantity, 0) as quantity
from
production_product_main ppm
left join production_product_output ppo on ppo.product_main_id = ppm.id
- left join production_product_input ppi on ppi.product_main_id = ppm.id
left join product_order po on po.id = ppm.product_order_id
left join product_order_plan pop on po.id = pop.product_order_id
left join production_plan pp on pop.production_plan_id = pp.id
--
Gitblit v1.9.3