Browse Source

fix: 修复部门删除时不能再次添加同名部门

feature/agg
yinhuaiwei 9 hours ago
parent
commit
29a1ea9d46
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      inspect-management/src/main/resources/mapper/system/SysDeptMapper.xml

+ 1
- 1
inspect-management/src/main/resources/mapper/system/SysDeptMapper.xml View File

@ -105,7 +105,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="com.inspect.system.base.domain.SysDept">


Loading…
Cancel
Save