update ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml.

fix: checkDeptNameUnique查询增加del_flag条件,如果不加此条件在删除部门后无法再创建相同名字的部门
This commit is contained in:
YeQizhang 2022-06-09 16:36:52 +00:00 committed by Gitee
parent 5c5961f1b4
commit 2ebc4d5a9e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">