yuan
5 天以前 173dbd52441847f53fa8116c1edd7fcab23ce0a1
fix: 修复部门名称唯一性查询的SQL语句顺序
已修改1个文件
3 ■■■■ 文件已修改
src/main/resources/mapper/system/SysDeptMapper.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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">