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);
|
}
|