From 4c8144cc2785cdb8c5529c6c59a8901a33ec06bb Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 24 四月 2026 17:55:00 +0800
Subject: [PATCH] feat:1.生产计划下发 2.订单-工艺路线,bom,工序
---
src/main/resources/mapper/production/ProductionOrderMapper.xml | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductionOrderMapper.xml b/src/main/resources/mapper/production/ProductionOrderMapper.xml
index b2f895d..40af51d 100644
--- a/src/main/resources/mapper/production/ProductionOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductionOrderMapper.xml
@@ -16,7 +16,7 @@
<result column="complete_quantity" property="completeQuantity" />
<result column="start_time" property="startTime" />
<result column="end_time" property="endTime" />
- <result column="sale_ledger_product_id" property="saleLedgerProductId" />
+ <result column="sales_ledger_product_id" property="salesLedgerProductId" />
<result column="create_user" property="createUser" />
<result column="dept_id" property="deptId" />
<result column="plan_complete_time" property="planCompleteTime" />
@@ -44,7 +44,7 @@
po.complete_quantity,
po.start_time,
po.end_time,
- po.sale_ledger_product_id,
+ po.sales_ledger_product_id,
po.create_user,
po.dept_id,
po.plan_complete_time,
@@ -53,7 +53,8 @@
sl.customer_name as customerName,
p.product_name as productName,
pm.model as model,
- tr.process_route_code as processRouteCode
+ tr.process_route_code as processRouteCode,
+ tb.bom_no as bomNo
</sql>
<sql id="ProductionOrderVoFrom">
@@ -62,6 +63,7 @@
left join product_model pm on po.product_model_id = pm.id
left join product p on pm.product_id = p.id
left join technology_routing tr on po.technology_routing_id = tr.id
+ left join technology_bom tb on tb.id = tr.bom_id
</sql>
<sql id="ProductionOrderWhere">
@@ -79,8 +81,8 @@
<if test="c.technologyRoutingId != null">
and po.technology_routing_id = #{c.technologyRoutingId}
</if>
- <if test="c.saleLedgerProductId != null">
- and po.sale_ledger_product_id = #{c.saleLedgerProductId}
+ <if test="c.salesLedgerProductId != null">
+ and po.sales_ledger_product_id = #{c.salesLedgerProductId}
</if>
<if test="c.status != null">
and po.status = #{c.status}
--
Gitblit v1.9.3