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 |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/production/ProductionProductMainMapper.xml b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
index 22d46a8..798c2b9 100644
--- a/src/main/resources/mapper/production/ProductionProductMainMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -23,13 +23,12 @@
         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