package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.RiskBlacklist;
import cn.pluss.platform.vo.RiskBlacklistVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

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

/**
 * <p>
 * 风控黑名单表 Mapper 接口
 * </p>
 *
 * @author Djh
 * @since 2021-09-07
 */
public interface RiskBlacklistMapper extends BaseMapper<RiskBlacklist> {

    Page<RiskBlacklistVO> selectPageVO(Page<RiskBlacklistVO> page, @Param("condition") Map<String, Object> condition);

    @Select("SELECT * FROM tb_pluss_risk_blacklist where userId = #{userId}")
    List<RiskBlacklist> getByUserId(Long userId);
}
