cuilei
7 天以前 b0ec9895cde2519bc085ac40acbeea89ae8b6f9d
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
package org.jeecg.modules.system.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.MdcUserProduction;
import org.jeecg.modules.system.entity.SysUser;
 
import java.util.List;
 
/**
 * 用户产线Mapper接口
 *
 * @author: LiuS
 * @create: 2023-03-24 15:43
 */
public interface MdcUserProductionMapper extends BaseMapper<MdcUserProduction> {
 
    /**
     * 根据指定用户id查询产线id集合
     */
    List<String> queryProductionIdsByUserId(@Param("userId") String userId);
 
    /**
     * 获取已分配的用户列表
     * @param proId
     * @return
     */
    List<SysUser> getUserPermsByGroupId(@Param("proId") String proId);
 
    /**
     * 获取未分配的用户列表
     * @param proId
     * @return
     */
    List<SysUser> getUserNonPermsByGroupId(@Param("proId") String proId);
 
    /**
     * 获取设备未分配的用户
     * @param proId
     * @return
     */
    List<SysUser> getUserNonPermsByDeviceId(String proId);
 
 
    /**
     * 获取设备已分配的用户
     * @param deviceId
     * @return
     */
    List<SysUser> getUserPermsByDeviceId(String deviceId);
 
    /**
     * 通过车间id与岗位id筛选用户
     * @param post
     * @param proId
     * @return
     */
    List<SysUser> queryByPostAndProId(@Param("post") String post, @Param("proId") String proId);
}