package com.jwipc.finance.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CostInvoicedApply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.finance.model.po.CostInvoicedApplyPO;
import com.jwipc.finance.model.po.InvoicedApplyPrintPO;
import com.jwipc.finance.model.query.CostInvoicedApplyQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对账模块-费用开票申请 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-05
 */
public interface CostInvoicedApplyMapper extends BaseMapper<CostInvoicedApply> {

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

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

    List<CostInvoicedApplyPO> findPageByQuery(@Param("query") CostInvoicedApplyQuery query);

    List<CostInvoicedApplyPO> findPageByQuery(Page<CostInvoicedApply> dbPage, @Param("query") CostInvoicedApplyQuery query);
}
