package com.xunhong.erp.turbo.rbac.infrastructure.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xunhong.erp.turbo.rbac.infrastructure.entity.UserRoleDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shenyifei
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRoleDO> {
	UserRoleDO getByUserId(Long userId);

	List<UserRoleDO> listByUserId(Long userId);

	List<UserRoleDO> selectList(@Param("ew") Wrapper<UserRoleDO> queryWrapper, @Param("roleIdList") List<Long> roleIdList);
}
