package com.jwipc.finance.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CompanyInvoicedApply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.finance.entity.CompanyInvoicedApply;
import com.jwipc.finance.model.po.CompanyInvoicedApplyPO;
import com.jwipc.finance.model.po.CreatePcaDetailPO;
import com.jwipc.finance.model.po.InvoicedApplyPrintPO;
import com.jwipc.finance.model.query.CompanyInvoicedApplyQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对账模块-公司间销售开票申请 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-18
 */
public interface CompanyInvoicedApplyMapper extends BaseMapper<CompanyInvoicedApply> {
    String findInvoiceVoucher(@Param("id") Long id);

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

    List<CompanyInvoicedApplyPO> findPageByQuery(@Param("query") CompanyInvoicedApplyQuery query);

    List<CompanyInvoicedApplyPO> findPageByQuery(Page<CompanyInvoicedApply> dbPage, @Param("query") CompanyInvoicedApplyQuery query);

    List<CreatePcaDetailPO> queryCodApplyInvoiceById(@Param("id") Long id);
}
