lyh
2025-02-17 ce93b6e846a9688db550ed40e6718c0e58d524ec
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
package org.jeecg.modules.system.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.entity.MdcUserProduction;
import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.system.model.ProductionIdModel;
 
import java.util.List;
 
/**
 * @Description: 用户产线表
 * @author: LiuS
 * @create: 2023-03-27 11:56
 */
public interface IMdcUserProductionService extends IService<MdcUserProduction> {
 
    /**
     * 根据指定用户id查询产线信息
     */
    List<ProductionIdModel> queryProductionIdsOfUser(String userId);
 
    /**
     * 根据指定用户id查询产线id集合
     */
    List<String> queryProductionIdsByUserId(String userId);
 
    /**
     * 根据一组车间id查询用户产线信息
     * @param productionIds
     */
    List<MdcUserProduction> queryByProductionIds(List<String> productionIds);
 
    /**
     * 删除一组对象
     * @param mdcUserProductions
     * @return
     */
    boolean removeByCollection(List<MdcUserProduction> mdcUserProductions);
 
    /**
     * 获取已分配的用户列表
     * @param proId
     * @return
     */
    List<SysUser> getUserPermsByGroupId(String proId);
 
    /**
     * 获取未分配的用户列表
     * @param proId
     * @return
     */
    List<SysUser> getUserNonPermsByGroupId(String proId);
 
    /**
     * 获取未分配的用户
     * @param proId
     * @return
     */
    List<SysUser> getUserNonPermsByDeviceId(String proId);
 
    /**
     * 获取已分配的用户
     * @param proId
     * @return
     */
    List<SysUser> getUserPermsByDeviceId(String proId);
 
 
    MdcUserProduction getByUserIdAndGroupId(String userId, String proId);
}