From eead3af59c94c35422463fbbd19d26dffcbacc06 Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期五, 05 七月 2024 09:35:28 +0800 Subject: [PATCH] edit work last --- 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