瀏覽代碼

checkDeptNameUnique 去除已经删除的

shiqian 3 年之前
父節點
當前提交
0328847994
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      boman-modules/boman-system/src/main/resources/mapper/system/SysDeptMapper.xml

+ 1 - 1
boman-modules/boman-system/src/main/resources/mapper/system/SysDeptMapper.xml

@@ -95,7 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	
 	
 	<select id="checkDeptNameUnique" resultMap="SysDeptResult">
 	<select id="checkDeptNameUnique" resultMap="SysDeptResult">
 	    <include refid="selectDeptVo"/>
 	    <include refid="selectDeptVo"/>
-		where dept_name=#{deptName} and parent_id = #{parentId} limit 1
+		where dept_name=#{deptName} and parent_id = #{parentId} and del_flag != 2 limit 1
 	</select>
 	</select>
     
     
     <insert id="insertDept" parameterType="com.boman.domain.SysDept">
     <insert id="insertDept" parameterType="com.boman.domain.SysDept">