IArchivesDeptService.java
1.52 KB
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
package com.ruoyi.service;
import java.util.List;
import com.ruoyi.domain.ArchivesDept;
import com.ruoyi.util.TreeSelect;
/**
* 部门Service接口
*
* @author li
* @date 2022-08-01
*/
public interface IArchivesDeptService
{
/**
* 查询部门
*
* @param deptId 部门主键
* @return 部门
*/
public ArchivesDept selectArchivesDeptByDeptId(Long deptId);
/**
* 查询部门列表
*
* @param archivesDept 部门
* @return 部门集合
*/
public List<ArchivesDept> selectArchivesDeptList(ArchivesDept archivesDept);
/**
* 新增部门
*
* @param archivesDept 部门
* @return 结果
*/
public int insertArchivesDept(ArchivesDept archivesDept);
/**
* 修改部门
*
* @param archivesDept 部门
* @return 结果
*/
public int updateArchivesDept(ArchivesDept archivesDept);
/**
* 批量删除部门
*
* @param deptIds 需要删除的部门主键集合
* @return 结果
*/
public int deleteArchivesDeptByDeptIds(Long[] deptIds);
/**
* 删除部门信息
*
* @param deptId 部门主键
* @return 结果
*/
public int deleteArchivesDeptByDeptId(Long deptId);
public List<ArchivesDept> buildDeptTree(List<ArchivesDept> depts);
/**
* 构建前端所需要下拉树结构
*
* @param depts 部门列表
* @return 下拉树结构列表
*/
public List<TreeSelect> buildDeptTreeSelect(List<ArchivesDept> depts);
}