package cn.pluss.platform.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import cn.pluss.platform.entity.RoleInfo;
import cn.pluss.platform.entity.UserInfo;

@Mapper
public interface RoleInfoMapper extends BaseMapper<RoleInfo> {

    RoleInfo queryRoleInfo(RoleInfo roleInfo);

    List<RoleInfo> queryRoleInfoList(RoleInfo roleInfo);

    void saveRoleInfo(RoleInfo roleInfo);

    void updateRoleInfo(RoleInfo roleInfo);

    void deleteRoleInfo(RoleInfo roleInfo);

    List<RoleInfo> queryRoleInfoPage(Map map);

    Integer queryRoleInfoPageCount(Map map);

    void saveRoleInfoBatch(List<RoleInfo>  roleInfoList);

	List<RoleInfo> getRoleNames(@Param(value="loginName") String loginName);

	List<RoleInfo> getRoleNames(UserInfo userInfo);
}

