nidapeng
2024-03-19 6c40e04eb7c2060feb2533735cd3089d438965e5
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package com.doumee.service.system;
 
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.doumee.dao.system.dto.QuerySystemDepartmentDTO;
import com.doumee.dao.system.model.SystemDepartment;
import com.doumee.dao.system.vo.SystemDepartmentListVO;
 
import java.util.List;
 
/**
 * Service定义
 * @author Eva.Caesar Liu
 * @date 2023/03/21 14:49
 */
public interface SystemDepartmentService {
 
    /**
     * 创建
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    Integer create(SystemDepartment systemDepartment);
 
    /**
     * 主键删除
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    void deleteById(Integer id);
 
    /**
     * 批量主键删除
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    void deleteByIdInBatch(List<Integer> ids);
 
    /**
     * 主键更新
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    void updateById(SystemDepartment systemDepartment);
 
    /**
     * 批量主键更新
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    void updateByIdInBatch(List<SystemDepartment> systemDepartments);
 
    /**
     * 主键查询
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    SystemDepartment findById(Integer id);
 
    /**
     * 根据ID集查询
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    List<SystemDepartment> findByIds(List<Integer> ids);
 
    /**
     * 条件查询单条记录
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    SystemDepartment findOne(SystemDepartment systemDepartment);
 
    /**
     * 条件查询单条记录
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    SystemDepartment findOne(Wrapper<SystemDepartment> wrapper);
 
    /**
     * 条件查询
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    List<SystemDepartmentListVO> findList(QuerySystemDepartmentDTO dto);
 
    /**
     * 条件查询
     * @param wrapper
     * @return
     */
    List<SystemDepartment> findList(Wrapper<SystemDepartment> wrapper);
 
    /**
     * 条件统计
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    long count(SystemDepartment systemDepartment);
 
    /**
     * 获取子孙部门ID集
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    List<Integer> findChildren(Integer departmentId);
}