package com.jwipc.finance.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.InvoicedApply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.finance.model.po.CreatePcaDetailPO;
import com.jwipc.finance.model.po.InvoicedApplyPO;
import com.jwipc.finance.model.po.InvoicedApplyPrintPO;
import com.jwipc.finance.model.query.InvoicedApplyQuery;
import com.jwipc.finance.model.query.PaymentApplyItemQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对账模块-开票申请 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-03-04
 */
public interface InvoicedApplyMapper extends BaseMapper<InvoicedApply> {

    List<InvoicedApplyPO> findPageByQuery(@Param("query") InvoicedApplyQuery query);

    List<InvoicedApplyPO> findPageByQuery(Page<InvoicedApply> dbPage, @Param("query") InvoicedApplyQuery query);

    InvoicedApplyPrintPO selectPrintDataById(@Param("id") Long id);

    String findInvoiceVoucher(@Param("id") Long id);

    List<CreatePcaDetailPO> readCodPaymentInvoiceData(@Param("query") PaymentApplyItemQuery query);

    List<InvoicedApplyPO> selectDataByAccountStatementNo(@Param("statementNoList")List<String> statementNoList);
}
