package com.jwipc.finance.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CompanyInvoicedApplyPostResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.finance.entity.InvoicedApplyPostResult;
import com.jwipc.finance.model.dto.BudgetReportDTO;
import com.jwipc.finance.model.query.BudgetReportQuery;

import java.util.List;

/**
 * <p>
 * 对账模块-公司间销售开票申请过账结果表 服务类
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-18
 */
public interface ICompanyInvoicedApplyPostResultService extends IService<CompanyInvoicedApplyPostResult> {
    /**
     * 获取最新的过账结果记录
     *
     * @param iaId 开票申请ID
     * @return 结果
     */
    CompanyInvoicedApplyPostResult findLastPostResult(Long iaId);

    List<BudgetReportDTO> findPageByQuery(Page<BudgetReportDTO> dbPage, BudgetReportQuery query);


    void updateNExpireDate(Long iaId, String paymentExpireDate);
}
