RuoYi
2020-09-07 03ebe84eeebf6d48bcd6a87e1f12821c1b559951
src/main/resources/mybatis/system/SysDeptMapper.xml
@@ -64,7 +64,7 @@
   
   <select id="hasChildByDeptId" parameterType="Long" resultType="int">
      select count(1) from sys_dept
      where del_flag = '0' and parent_id = #{deptId}
      where del_flag = '0' and parent_id = #{deptId} limit 1
   </select>
   
   <select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult">
@@ -77,7 +77,7 @@
   
   <select id="checkDeptNameUnique" resultMap="SysDeptResult">
       <include refid="selectDeptVo"/>
      where dept_name=#{deptName} and parent_id = #{parentId}
      where dept_name=#{deptName} and parent_id = #{parentId} limit 1
   </select>
    
    <insert id="insertDept" parameterType="SysDept">