From e0cd5381e248fcfa840dee56d54a2bd2357ce91a Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 03 八月 2022 16:48:55 +0800 Subject: [PATCH] 数据逻辑删除不进行唯一验证 --- ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml index 984f89c..000166e 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -82,7 +82,7 @@ <select id="checkDeptNameUnique" resultMap="SysDeptResult"> <include refid="selectDeptVo"/> - where dept_name=#{deptName} and parent_id = #{parentId} limit 1 + where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 </select> <insert id="insertDept" parameterType="SysDept"> -- Gitblit v1.9.2