EntmicroDepartmentPathMapper.java
1.67 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
package cn.com.glsx.entmicro.mapper;
import cn.com.glsx.entmicro.entity.EntmicroDepartmentPath;
import cn.com.glsx.entmicro.model.request.EntmicroDepartmentRequest;
import cn.com.glsx.entmicro.model.response.DepartmentPathResponse;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface EntmicroDepartmentPathMapper extends CommonBaseMapper<EntmicroDepartmentPath> {
/**
* 保存闭包树
* @return
*/
Boolean saveEntmicroDepartmentPath(@Param("entmicroDepartmentPath") EntmicroDepartmentPath entmicroDepartmentPath);
/**
* 查询组织树
* @param entmicroDepartmentRequest
* @return
*/
List<DepartmentPathResponse> selectDepartmentTree(@Param("entmicroDepartmentRequest")EntmicroDepartmentRequest entmicroDepartmentRequest);
/**
* 删除组织
* @param entmicroDepartmentPath
* @return
*/
Boolean deleteDepartmentPath(@Param("entmicroDepartmentPath") EntmicroDepartmentPath entmicroDepartmentPath);
/**
* 更新节点关联
* @param entmicroDepartmentPath
* @return
*/
Boolean updateDepartmentPath(@Param("entmicroDepartmentPath") EntmicroDepartmentPath entmicroDepartmentPath);
/**
* 插入新的组织关联
* @param entmicroDepartmentPath
* @return
*/
Boolean saveNewDepartmentPath(@Param("entmicroDepartmentPath") EntmicroDepartmentPath entmicroDepartmentPath);
List<EntmicroDepartmentPath> findSubordinateDep(@Param("parentId")Integer parentId);
List<Integer> findByParentId(@Param("parentId") int departmentId);
}