111
k94314517
2023-09-13 6252abae2d37cbf7ae4e2eb6411170f440657e12
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
package doumeemes.service.ext;
 
import doumeemes.core.model.PageData;
import doumeemes.core.model.PageWrap;
import doumeemes.dao.business.model.Company;
import doumeemes.dao.business.model.Department;
import doumeemes.dao.ext.dto.QueryDepartmentExtDTO;
import doumeemes.dao.ext.vo.CompanyExtListVO;
import doumeemes.dao.ext.vo.DepartmentExtListVO;
 
import java.util.List;
 
/**
 * 组织信息Service定义
 * @author 江蹄蹄
 * @date 2022/04/20 10:59
 */
public interface DepartmentExtService {
 
    /**
     * 分页查询
     * @author 江蹄蹄
     * @date 2022/04/20 10:59
     */
    PageData<DepartmentExtListVO> findPage(PageWrap<QueryDepartmentExtDTO> pageWrap);
    /**
     * 创建
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    Integer create(Department DepartmentExt);
 
    /**
     * 主键删除
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    void deleteById(Integer id);
 
    /**
     * 批量主键删除
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    void deleteByIdInBatch(List<Integer> ids);
 
    /**
     * 主键更新
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    void updateById(Department DepartmentExt);
 
    /**
     * 批量主键更新
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    void updateByIdInBatch(List<Department> DepartmentExts);
 
    /**
     * 主键查询
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    Department findById(Integer id);
 
    /**
     * 根据ID集查询
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    List<Department> findByIds(List<Integer> ids);
 
    /**
     * 条件查询单条记录
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    Department findOne(Department DepartmentExt);
 
    /**
     * 条件查询
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    List<DepartmentExtListVO> findList(QueryDepartmentExtDTO dto);
 
    /**
     * 条件统计
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    long count(Department DepartmentExt);
 
    /**
     * 获取子孙部门ID集
     * @author Eva.Caesar Liu
     * @date 2022/04/18 18:12
     */
    List<Integer> findChildren(Integer departmentId);
 
    List<Integer> userDataPermissonList(DepartmentExtListVO depart ,boolean isleaf);
 
    void loadAllDepart();
    void loadComDepart(CompanyExtListVO com);
 
    DepartmentExtListVO getModelById(Integer comId,Integer rootDepartId);
    Integer getComDepartId(DepartmentExtListVO depart,List<DepartmentExtListVO> allDepartList);
    DepartmentExtListVO getModelById(Integer comId,Integer id, List<DepartmentExtListVO>  list );
    DepartmentExtListVO getModelByName(Integer comId,String name);
    DepartmentExtListVO getModelByComDepartAndName(Integer comId,Integer comdepartId,String name);
 
    Integer getComDepartId(DepartmentExtListVO id);
 
    DepartmentExtListVO treeComList(QueryDepartmentExtDTO pageWrap);
 
    void changeCom(Integer id);
 
    List<DepartmentExtListVO> getDepartmentListByConditon(QueryDepartmentExtDTO pageWrap);
 
    void initCompnayCodes();
    void initCompnayCodesByCom(Company com);
 
    void syncDingDingDepartment();
 
 
    Department syncDepartment(Long departmentId,Integer companyId,String optType);
 
    void syncDelDepartment(Long departmentId);
}