From 4fbe2431794ce4842a4a7d1a7242d53db86182ef Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期三, 03 七月 2024 15:06:54 +0800
Subject: [PATCH] add quality and test items Api
---
pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
index 80d9752..046ca0c 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
@@ -38,7 +38,9 @@
from pr_production_node
where id = #{id,jdbcType=BIGINT}
</select>
-
+ <select id="selectNameByNodeId" parameterType="java.lang.Long" resultType="String">
+ select content from pr_production_node where id = #{id}
+ </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pr_production_node
where id = #{id,jdbcType=BIGINT}
@@ -151,6 +153,13 @@
</if>
</trim>
</select>
+ <select id="isEndNode" resultType="java.lang.Boolean">
+ select
+ n.sort >=n1.sort
+ from pr_production_node n
+ left join pr_production_node n1 on n.process_id = n1.process_id
+ where n1.id = #{id} and n.is_end=1
+ </select>
<update id="deleteLogicById" parameterType="java.lang.Long">
update pr_production_node set deleted = 1
--
Gitblit v1.8.0