From f2c7576cbd050824ec78233483e06fc375382bfb Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 02 四月 2026 17:04:03 +0800
Subject: [PATCH] yys 1.客户档案导入-维护人,维护时间默认当前 2.销售报价审核非必填,产品选择方式也要改 3.销售产品增加物料号字段 4.产品维护增加录入时间,修改时间 6.发货审核不需要了 7.BI的生产核算分析不要了,增加生产订单当前工序 3.库存导入模板规格改成图纸编号,产品名称可以为空,加个库位 4.库存管理外购改为标准件 5.bom产品唯一 6.产品根据bom计算子项数量(只统计二级)

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

diff --git a/src/main/resources/mapper/production/ProductOrderMapper.xml b/src/main/resources/mapper/production/ProductOrderMapper.xml
index ab4e290..0bf376b 100644
--- a/src/main/resources/mapper/production/ProductOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductOrderMapper.xml
@@ -77,23 +77,21 @@
                ps.product_model_id,
                ps.process_id,
                ps.unit_quantity,
-               ps.unit_quantity * po.quantity as demandedQuantity,
+               ps.demanded_quantity as demandedQuantity,
                ps.unit,
                p.product_name,
                pm.drawing_number,
                pp.name as  process_name,
                pm.product_id,
-               pm.model,
-               pb.bom_no
+               pm.model
         from
-            product_structure ps
+            product_structure_record ps
                 left join product_model pm on ps.product_model_id = pm.id
                 left join product p on pm.product_id = p.id
                 left join product_process pp on ps.process_id = pp.id
-                left join product_bom pb on ps.bom_id = pb.id
                 left join product_process_route ppr on ps.bom_id = ppr.bom_id
                 left join product_order po on po.id = ppr.product_order_id
-        where ppr.product_order_id = #{orderId}
+        where ps.product_order_id = #{orderId}
         order by ps.id
     </select>
 

--
Gitblit v1.9.3