|  |  |  | 
|---|
|  |  |  | package com.ruoyi.system.service; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.ruoyi.common.core.domain.DeptUserTree; | 
|---|
|  |  |  | import com.ruoyi.common.core.domain.TreeDeptWell; | 
|---|
|  |  |  | import com.ruoyi.common.core.domain.TreeSelect; | 
|---|
|  |  |  | import com.ruoyi.common.core.domain.TreeSelectWell; | 
|---|
|  |  |  | import com.ruoyi.common.core.domain.entity.SysDept; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return 结果 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public int deleteDeptById(Long deptId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据当前deptId或者当前及所属下级的所有deptId | 
|---|
|  |  |  | * @param deptId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<Long> deptIdBySub(Long deptId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<SysDept> all(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<SysDept> allByUser(List<Long> deptList); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 预留结构的树形 | 
|---|
|  |  |  | * @param depts | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<TreeDeptWell> wellTree(List<TreeDeptWell> depts); | 
|---|
|  |  |  | List<TreeDeptWell> buildDeptWellTree(List<TreeDeptWell> depts); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 人员部门结构树形 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<DeptUserTree> deptUserTree(List<DeptUserTree> depts); | 
|---|
|  |  |  | } | 
|---|