From ce1ea9ac3806578719070a463ef7381a0d3c5148 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 12 五月 2026 17:45:00 +0800
Subject: [PATCH] 分派生产单到班组长,班组长:排产工单到班组成员
---
src/main/resources/mapper/production/ProductionOrderMapper.xml | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductionOrderMapper.xml b/src/main/resources/mapper/production/ProductionOrderMapper.xml
index 1a304ef..c4ae186 100644
--- a/src/main/resources/mapper/production/ProductionOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductionOrderMapper.xml
@@ -28,6 +28,7 @@
<result column="model" property="model" />
<result column="processRouteCode" property="processRouteCode" />
<result column="returned" property="returned" />
+ <result column="teamLeaderUserName" property="teamLeaderUserName" />
</resultMap>
<sql id="ProductionOrderVoColumns">
@@ -46,6 +47,8 @@
po.dept_id,
po.plan_complete_time,
po.status,
+ po.team_leader_user_id,
+ sl_user.nick_name as teamLeaderUserName,
po_sales.salesContractNo,
po_sales.customerName,
p.product_name as productName,
@@ -75,6 +78,7 @@
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
+ left join sys_user sl_user on sl_user.user_id = po.team_leader_user_id
left join (
select production_order_id as productionOrderId,
if(max(case when ifnull(is_returned, 0) = 1 then 1 else 0 end) = 1, true, false) as returned
--
Gitblit v1.9.3