package com.jwipc.finance.service;

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

import java.util.List;

/**
 * <p>
 * 对账模块-开票申请过账结果表 服务类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-03-07
 */
public interface IInvoicedApplyPostResultService extends IService<InvoicedApplyPostResult> {

    /**
     * 获取最新的过账结果记录
     *
     * @param iaId 开票申请ID
     * @return 结果
     */
    InvoicedApplyPostResult findLastPostResult(Long iaId);

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


    void updateNExpireDate(Long iaId, String paymentExpireDate);

}
