From 02049e806d5ab01f63c9e693e481dd76a2bd37e0 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Thu, 18 Jun 2026 15:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E6=8A=A5=E5=B7=A5=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/longchuang/ProductionPlanMapper.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/resources/mapper/longchuang/ProductionPlanMapper.xml b/src/main/resources/mapper/longchuang/ProductionPlanMapper.xml index 428dc59..cd5ea0b 100644 --- a/src/main/resources/mapper/longchuang/ProductionPlanMapper.xml +++ b/src/main/resources/mapper/longchuang/ProductionPlanMapper.xml @@ -116,6 +116,21 @@ and s.order_type = a.order_type and s.assignee_user_id = #{userId} and n.status != '已完成' + and ( + upper(isnull(a.node_report_mode, + case + when a.order_type in ('MACHINING', 'RENOVATION') then 'SEQUENTIAL' + else 'PARALLEL' + end + )) != 'SEQUENTIAL' + or n.node_code = ( + select top 1 n2.node_code + from lc_production_order_node n2 + where n2.order_no = a.order_no + and n2.status != '已完成' + order by n2.sort_no asc + ) + ) ) and a.status != '已完成'