xuefei
2023-08-08 6c764f473b1e0e9dd2fb13034fe0d7295ab3724e
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
package cn.exrick.xboot.core.service;
 
import cn.exrick.xboot.core.base.XbootBaseService;
import cn.exrick.xboot.core.entity.Department;
 
import java.util.List;
 
/**
 * 部门接口
 * @author Exrick
 */
public interface DepartmentService extends XbootBaseService<Department, String> {
 
    /**
     * 通过父id获取 升序
     * @param parentId
     * @param openDataFilter 是否开启数据权限
     * @return
     */
    List<Department> findByParentIdOrderBySortOrder(String parentId, Boolean openDataFilter);
 
    /**
     * 通过父id和状态获取
     * @param parentId
     * @param status
     * @return
     */
    List<Department> findByParentIdAndStatusOrderBySortOrder(String parentId, Integer status);
 
    /**
     * 部门名模糊搜索 升序
     * @param title
     * @param openDataFilter 是否开启数据权限
     * @return
     */
    List<Department> findByTitleLikeOrderBySortOrder(String title, Boolean openDataFilter);
}