From ba69a4fb6db917d5e4d0fb14c37add8ee859b0e1 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 13 三月 2026 17:57:51 +0800
Subject: [PATCH] 1.耗材迁移 2.仓储物流新增字段(毛重,皮重,净重) 3.设备保养多选(多条定时任务)

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