From 14b0417bca9050a11792248f5c5c7e7c86e4744f Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期三, 21 八月 2024 16:47:45 +0800 Subject: [PATCH] 排班功能 --- pms-parent/pms-global/src/main/resources/mapper/PrDevOpsPlanMapper.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrDevOpsPlanMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrDevOpsPlanMapper.xml index 567af34..de4b2ea 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/PrDevOpsPlanMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/PrDevOpsPlanMapper.xml @@ -160,6 +160,14 @@ </if> </trim> </select> + <select id="exists" resultType="java.lang.Boolean"> + select count(1) > 0 + from pr_dev_ops_plan + where name = #{name,jdbcType=VARCHAR} + <if test="id != null"> + and id != #{id,jdbcType=BIGINT} + </if> + </select> <update id="deleteLogicById" parameterType="java.lang.Long"> update pr_dev_ops_plan set deleted = 1 -- Gitblit v1.8.0