lyh
11 小时以前 78aeb8a8c97a884a640d46755e4be706bde48b7d
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
package com.lxzn.ucenter.dao;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxzn.framework.domain.base.ext.MultilevelDictionaryExt;
import com.lxzn.framework.domain.ucenter.Department;
import com.lxzn.framework.domain.ucenter.User;
import com.lxzn.framework.domain.ucenter.ext.DepartmentExt;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface DepartmentMapper extends BaseMapper<Department> {
    /**
     * 获取用户未分配的部门列表
     * @param userId
     * @return
     */
    List<Department> getUserNonPermDepart(@Param("userId") String userId);
 
    /**
     * 获取用户已分配的部门列表
     * @param userId
     * @return
     */
    List<Department> getUserPermDepart(@Param("userId") String userId);
 
    /**
     * 获取部门列表 父子关系
     * @return
     */
    List<DepartmentExt> findExtAll();
 
    /**
     * 根据父节点查找子节点
     * @param parentId
     * @return
     */
    List<DepartmentExt> findByParentId(@Param("parentId") String parentId);
 
    /**
     * 获取部门未指定的审批人
     * @param departId
     * @return
     */
    List<User> getUserNonApproveDepart(@Param("departId") String departId);
 
    /**
     * 获取部门已指定的审批人
     * @param departId
     * @return
     */
    List<User> getUserApproveDepart(@Param("departId") String departId);
 
}