package com.ruoyi.info.collection.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.info.collection.domain.dto.CcdiCreditInfoQueryDTO;
import com.ruoyi.info.collection.domain.vo.CreditInfoDetailVO;
import com.ruoyi.info.collection.domain.vo.CreditInfoListVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * 征信维护聚合查询 Mapper
 */
public interface CcdiCreditInfoQueryMapper {

    Page<CreditInfoListVO> selectCreditInfoPage(@Param("page") Page<CreditInfoListVO> page,
                                                @Param("query") CcdiCreditInfoQueryDTO queryDTO);

    CreditInfoListVO selectCreditInfoSummaryByPersonId(@Param("personId") String personId);

    CreditInfoDetailVO selectCreditInfoDetailByPersonId(@Param("personId") String personId);

    List<CreditInfoListVO> selectCreditInfoList(@Param("query") CcdiCreditInfoQueryDTO queryDTO);

    LocalDate selectLatestQueryDate(@Param("personId") String personId);
}
