liusheng
2025-09-29 2baa05224b72fbae849678e338bbc85506a9cfe6
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -77,6 +77,9 @@
        <if test="hisParentId != null and hisParentId != ''">
            AND his_parent_id = #{hisParentId}
        </if>
            <if test="orgid != null and orgid != ''">
            AND orgid = #{orgid}
        </if>
        <!-- 数据范围过滤 -->
        ${params.dataScope}
        order by d.dept_type asc, d.parent_id, d.order_num
@@ -247,7 +250,7 @@
    <delete id="deleteDeptById" parameterType="Long">
        update sys_dept
        set del_flag = '2'
        set del_flag = '1'
        where dept_id = #{deptId}
    </delete>