package com.ruoyi.system.mapper;

import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
import com.ruoyi.system.domain.SysUserPost;
import com.ruoyi.system.domain.vo.SysPostByTypeVo;
import com.ruoyi.system.domain.vo.SysUserSelectVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户与岗位关联表 数据层
 *
 * @author ruoyi
 */
public interface SysUserPostMapper extends BaseMapperPlus<SysUserPost> {

    List<SysUserSelectVo> getUserList(@Param("postId") Long postId, @Param("deptId") Long deptId, @Param("typeValue") String typeId);

    List<SysPostByTypeVo> getPostListByType(String typeValue);
}
