Helius
2021-09-16 4d80b819948366cb0754369b1bea5e0e83cf6af1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package cc.mrbird.febs.system.service;
 
import cc.mrbird.febs.common.entity.DeptTree;
import cc.mrbird.febs.common.entity.QueryRequest;
import cc.mrbird.febs.system.entity.Dept;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * @author MrBird
 */
public interface IDeptService extends IService<Dept> {
 
    /**
     * 获取部门树(下拉选使用)
     *
     * @return 部门树集合
     */
    List<DeptTree<Dept>> findDepts();
 
    /**
     * 获取部门列表(树形列表)
     *
     * @param dept 部门对象(传递查询参数)
     * @return 部门树
     */
    List<DeptTree<Dept>> findDepts(Dept dept);
 
    /**
     * 获取部门树(供Excel导出)
     *
     * @param dept    部门对象(传递查询参数)
     * @param request QueryRequest
     * @return List<Dept>
     */
    List<Dept> findDepts(Dept dept, QueryRequest request);
 
    /**
     * 新增部门
     *
     * @param dept 部门对象
     */
    void createDept(Dept dept);
 
    /**
     * 修改部门
     *
     * @param dept 部门对象
     */
    void updateDept(Dept dept);
 
    /**
     * 删除部门
     *
     * @param deptIds 部门 ID集合
     */
    void deleteDepts(String[] deptIds);
}