懒羊羊
2023-11-14 8286c62256f23bc2367a6729c0f46f84215e380b
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
package cn.stylefeng.guns.sys.modular.rest.mapper;
 
import cn.stylefeng.guns.base.pojo.node.TreeviewNode;
import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.sys.modular.rest.entity.RestDept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2018-12-07
 */
public interface RestDeptMapper extends BaseMapper<RestDept> {
 
    /**
     * 获取ztree的节点列表
     */
    List<ZTreeNode> tree();
 
    /**
     * 获取所有部门列表
     */
    Page<Map<String, Object>> list(@Param("page") Page page, @Param("condition") String condition, @Param("deptId") Long deptId);
 
    /**
     * 获取所有部门列表(不分页)
     */
    List<Map<String, Object>> listNotPage(@Param("condition") String condition, @Param("deptId") Long deptId);
 
    /**
     * 获取所有部门树列表
     */
    List<TreeviewNode> treeviewNodes();
 
    /**
     * where pids like ''
     */
    List<RestDept> likePids(@Param("deptId") Long deptId);
}