Prechádzať zdrojové kódy

checkDeptNameUnique 去除已经删除的

shiqian 3 rokov pred
rodič
commit
0328847994

+ 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">
 	    <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>
     
     <insert id="insertDept" parameterType="com.boman.domain.SysDept">