package com.jwipc.finance.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.AccountStatement;
import com.jwipc.finance.entity.CostInvoicedPaymentCertificate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.finance.entity.CostInvoicedPaymentCertificate;
import com.jwipc.finance.model.po.CostInvoicedPaymentCertificatePO;
import com.jwipc.finance.model.query.InvoicedDetailQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对账模块-费用关联缴款书明细 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-05
 */
public interface CostInvoicedPaymentCertificateMapper extends BaseMapper<CostInvoicedPaymentCertificate> {
    List<CostInvoicedPaymentCertificatePO> getInvoiceReceiptListByIaId(@Param("iaId") Long iaId);

    CostInvoicedPaymentCertificate getExitDataByIaIdAndInvoiceNumber(@Param("iaId") Long iaId, @Param("invoiceNumber") String invoiceNumber);

    List<CostInvoicedPaymentCertificatePO> findPageByQuery(@Param("query") InvoicedDetailQuery query);

    List<CostInvoicedPaymentCertificatePO> findPageByQuery(Page<AccountStatement> dbPage, @Param("query") InvoicedDetailQuery query);

    CostInvoicedPaymentCertificate getExitDataByIaIdAndElectronInvoiceNumber(@Param("iaId") Long iaId, @Param("electronInvoiceNumber") String electronInvoiceNumber);
}