yuan
2026-08-26 ce6d2b067577c5d85720ae2acf1f53a30ca98d51
src/main/resources/mapper/system/SysDeptMapper.xml
@@ -91,8 +91,9 @@
   <select id="checkDeptNameUnique" resultMap="SysDeptResult">
       <include refid="selectDeptVo"/>
      where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1
      where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0'
        order by d.create_time desc
        limit 1
   </select>
    <insert id="insertDept" parameterType="com.ruoyi.project.system.domain.SysDept">