From 80b8b8fe6080cf00f709c1a155a0ffb23cbf7d2f Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期一, 23 三月 2026 11:05:09 +0800
Subject: [PATCH] 修改关联的工艺路线
---
src/main/resources/mapper/production/ProductionProductInputMapper.xml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductionProductInputMapper.xml b/src/main/resources/mapper/production/ProductionProductInputMapper.xml
index 65e2b96..29fc27e 100644
--- a/src/main/resources/mapper/production/ProductionProductInputMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductInputMapper.xml
@@ -42,7 +42,8 @@
SELECT
DATE_FORMAT(ppi.create_time, '%Y-%m-%d') AS date,
-- 鎶ュ伐鏁伴噺 * 鏈�灏忕郴鏁�
- SUM(ppi.quantity * IFNULL(distinct_ps.unit_quantity, 1)) AS quantity
+ # SUM(ppi.quantity * IFNULL(distinct_ps.unit_quantity, 1)) AS quantity
+ SUM(ppi.quantity) AS quantity
FROM production_product_input ppi
INNER JOIN production_product_main ppm ON ppm.id = ppi.product_main_id
INNER JOIN product_process_route_item ppri ON ppri.id = ppm.product_process_route_item_id
--
Gitblit v1.9.3