cuijian
2023-08-19 bdd0875d4b13a3f1ef472f64d4b6a95e0ef64b22
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
75
76
77
78
79
80
81
package org.jeecg.modules.base.mapper;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.system.vo.SelectTreeModel;
import org.jeecg.modules.base.entity.WorkCenterDetail;
import org.jeecg.modules.base.entity.WorkCenterUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
 
import java.util.List;
import java.util.Map;
 
/**
 * @Description: mom_base_work_center_user
 * @Author: jeecg-boot
 * @Date:   2022-12-06
 * @Version: V1.0
 */
@Repository
public interface WorkCenterUserMapper extends BaseMapper<WorkCenterUser> {
    /**
     * 根据工作中心Id查列表
     *
     * @param page
     * @param workCenterId
     * @return
     */
    List<Map<String,Object>> listByWorkCenterId(Page<Map<String,Object>> page, @Param("workCenterId")String workCenterId);
    /**
     * 查尚未分配的部门人员
     *
     * @param page
     * @param departId
     * @param userIdList
     * @return
     */
    List<Map<String,Object>> getAddUserList(Page<Map<String,Object>> page,
                                            @Param("departId")String departId,
                                            @Param("userIdList")List<String> userIdList
                                            );
    /**
     * 部门树
     *
     * @param parentId
     * @param departId
     * @param version
     * @return
     */
   List<SelectTreeModel> getAddDepartTree( @Param("parentId")String parentId,
                                           @Param("departId")String departId,
                                           @Param("version")Integer version
                                           );
    /**
     * 查公司其他部门人员
     *
     * @param page
     * @param enterpriseId
     * @param userIdList
     * @param departIds
     * @return
     */
    List<Map<String,Object>> listByEnterpriseId(Page<Map<String,Object>> page,
                                                @Param("enterpriseId")String enterpriseId,
                                                @Param("userIdList")List<String> userIdList,
                                                @Param("departIds") List<String> departIds
    );
    /**
     * 查尚未分配的本部门人员
     *
     * @param page
     * @param parentId
     * @param userIdList
     * @return
     */
    List<Map<String,Object>> getUserList (Page<Map<String,Object>> page,
                                          @Param("userIdList")List<String> userIdList,
                                          @Param("parentId") String parentId
    );
 
}