龚焕茏
2024-07-22 54a6c048c97011cd2a99fbef2065afe0a167fcfc
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
package com.mindskip.xzs.service;
 
import com.mindskip.xzs.domain.Department;
import com.mindskip.xzs.domain.vo.*;
import com.mindskip.xzs.viewmodel.admin.department.DepartmentResponseVM;
 
import java.util.List;
 
public interface DepartmentService extends BaseService<Department>{
 
    /**
     * 添加部门
     * @param name
     * @return
     */
    Integer add(Department model);
 
    /**
     * 删除部门
     * @param id
     * @return
     */
    Integer remove(Integer id);
 
    /**
     * 修改部门
     * @param department
     * @return
     */
    Integer update(Department department);
 
    /**
     * 查询所有部门
     * @return
     */
    List<DepartmentResponseVM> gets(DepartmentResponseVM departmentResponseVM);
 
    Department getById(Integer id);
 
    DepartmentEditVO getByIdVO(Integer id);
 
    List<Department> gets(List<Integer> deptId);
 
    Department getName(String name);
 
    List<BaseSelect> getDeptUserList(Integer deptId);
 
    /**
     * 修改部门管理员
     * @param form
     */
    void updateAdmin(UpdateDeptAdminVO form);
 
    /**
     * 级联选择器数据
     *
     * @return
     */
    List<CascaderDataVO> cascader();
}