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 | 7 +++++++ 1 files changed, 7 insertions(+), 0 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 dffaf9f..046ca0c 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml @@ -153,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