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 { /** * 根据指定用户id查询产线id集合 */ List queryProductionIdsByUserId(@Param("userId") String userId); /** * 获取已分配的用户列表 * @param proId * @return */ List getUserPermsByGroupId(@Param("proId") String proId); /** * 获取未分配的用户列表 * @param proId * @return */ List getUserNonPermsByGroupId(@Param("proId") String proId); /** * 获取设备未分配的用户 * @param proId * @return */ List getUserNonPermsByDeviceId(String proId); /** * 获取设备已分配的用户 * @param deviceId * @return */ List getUserPermsByDeviceId(String deviceId); /** * 通过车间id与岗位id筛选用户 * @param post * @param proId * @return */ List queryByPostAndProId(@Param("post") String post, @Param("proId") String proId); }