From fe4d8530e45569a8b17886f4bd050e96e187fb8d Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期一, 30 三月 2026 16:26:24 +0800
Subject: [PATCH] feat: 生产成品核算报表接口,生产订单绑定工艺路线

---
 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