From 95e63522959ff8c21381ee2a5dc85b9d44cf2949 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期五, 22 八月 2025 22:34:00 +0800
Subject: [PATCH] 补充流程fix
---
blade-service/blade-mdm/src/main/java/org/springblade/mdm/program/mapper/NcNodeMapper.xml | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/blade-service/blade-mdm/src/main/java/org/springblade/mdm/program/mapper/NcNodeMapper.xml b/blade-service/blade-mdm/src/main/java/org/springblade/mdm/program/mapper/NcNodeMapper.xml
index 00c2a29..f9e2d29 100644
--- a/blade-service/blade-mdm/src/main/java/org/springblade/mdm/program/mapper/NcNodeMapper.xml
+++ b/blade-service/blade-mdm/src/main/java/org/springblade/mdm/program/mapper/NcNodeMapper.xml
@@ -117,20 +117,27 @@
left join blade_dict_biz dt on n.node_type=dt.dict_key and dt.code='nc_node_type' and dt.is_deleted=0
<where>
n.is_deleted=0 and n.node_type='20' and n.name=#{drawingNo}
- <if test="programStatus != null and programStatus != ''">
+ <if test="status != null and status != ''">
and
(
- <if test='programStatus.contains("1")'>
- n.parent_ids LIKE '0,1,%'
+ 1=1
+ <if test='status.contains("1")'>
+ or n.parent_ids LIKE '0,1,%'
</if>
- <if test='programStatus.contains("2")'>
+ <if test='status.contains("2")'>
or n.parent_ids LIKE '0,2,%'
</if>
- <if test='programStatus.contains("2")'>
+ <if test='status.contains("3")'>
or n.parent_ids LIKE '0,3,%'
</if>
)
</if>
+ <if test="createTimeBegin != null">
+ and n.create_time>=#{createTimeBegin}
+ </if>
+ <if test="createTimeEnd != null">
+ and n.create_time<=#{createTimeEnd}
+ </if>
</where>
--
Gitblit v1.9.3