From a27bcd2f9cba539ba9ffb7cfa949dc102d7446ff Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期一, 30 三月 2026 09:36:35 +0800
Subject: [PATCH] fix(production): 修复单位数量为零时的计算错误

---
 src/main/resources/mapper/production/ProductOrderMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/production/ProductOrderMapper.xml b/src/main/resources/mapper/production/ProductOrderMapper.xml
index 4c2b1f8..77f440e 100644
--- a/src/main/resources/mapper/production/ProductOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductOrderMapper.xml
@@ -70,7 +70,8 @@
                p.product_name,
                pp.name as  process_name,
                pm.product_id,
-               pm.model
+               pm.model,
+               ps.material_type
         from
             product_structure ps
                 left join product_model pm on ps.product_model_id = pm.id

--
Gitblit v1.9.3