xiangpei
2025-03-31 1698792d4299a0b81b9695d8a56e3d3088c7a7ee
system/src/main/java/com/ycl/system/service/ISysDeptService.java
@@ -1,6 +1,9 @@
package com.ycl.system.service;
import java.util.List;
import com.ycl.common.base.Result;
import com.ycl.common.core.domain.StringTreeSelect;
import com.ycl.common.core.domain.TreeSelect;
import com.ycl.common.core.domain.entity.SysDept;
@@ -20,12 +23,31 @@
    public List<SysDept> selectDeptList(SysDept dept);
    /**
     * 查询部门管理数据-无数据权限
     *
     * @param dept
     * @return
     */
    public List<SysDept> selectDeptListNoAuth(SysDept dept);
    /**
     * 查询部门树结构信息
     *
     * @param dept 部门信息
     * @return 部门树信息集合
     */
    public List<TreeSelect> selectDeptTreeList(SysDept dept);
    public List<TreeSelect> deptTreeNoDataAuth(SysDept dept);
    /**
     * 流程配置使用--树结构
     *
     * @param dept
     * @return
     */
    List<StringTreeSelect> flowDeptTree(SysDept dept);
    /**
     * 构建前端所需要树结构
@@ -34,6 +56,8 @@
     * @return 树结构列表
     */
    public List<SysDept> buildDeptTree(List<SysDept> depts);
    /**
     * 构建前端所需要下拉树结构
@@ -58,6 +82,8 @@
     * @return 部门信息
     */
    public SysDept selectDeptById(Long deptId);
    public List<SysDept> selectDeptByIds(List<Long> deptIds);
    /**
     * 根据ID查询所有子部门(正常状态)
@@ -121,4 +147,25 @@
     * @return 结果
     */
    public int deleteDeptById(Long deptId);
    /**
     * 列表
     * @return
     */
    Result all(SysDept dept);
    /**
     * flowable 查所有部门
     *
     * @return
     */
    List<StringTreeSelect> flowableAll();
    /**
     * 获取某部门的下级部门
     *
     * @param deptId
     * @return
     */
    List<Long> getChildIds(Long deptId);
}