From 522b9cd4cd7f38f88fe77cb9b9f2c5f7197eed29 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 03 四月 2026 10:06: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