package com.ningdatech.carapi.company.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ningdatech.carapi.company.entity.NdCompanyBlackList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ningdatech.carapi.company.entity.dto.CompanyCreditBlackListPageParam;
import com.ningdatech.carapi.company.entity.dto.ResCompanyBlackDetailListDTO;
import com.ningdatech.carapi.company.entity.dto.ResCompanyBlackListDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 企业失信名单 Mapper 接口
 * </p>
 *
 * @author liushuai
 * @since 2022-10-10
 */
public interface NdCompanyBlackListMapper extends BaseMapper<NdCompanyBlackList> {
    /**
     * 获取失信名单
     *
     * @param blackListPage 分页
     * @param param
     * @return 失信名单
     */
    Page<ResCompanyBlackListDTO> companyBlackList(Page<ResCompanyBlackListDTO> blackListPage,
                                                  @Param("po")CompanyCreditBlackListPageParam param);

    /**
     * 获取失信详情
     *
     * @param companyId 公司id
     * @return 失信详情
     */
    List<ResCompanyBlackDetailListDTO> companyBlackInfoList(@Param("companyId") Long companyId);
}
