package com.jwipc.finance.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CompanyAccountStatement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.finance.entity.CompanyAccountStatement;
import com.jwipc.finance.model.po.CompanyAccountStatementPO;
import com.jwipc.finance.model.query.CompanyAccountStatementQuery;

import java.util.List;

/**
 * <p>
 * 对账模块-公司间销售对账单主表 服务类
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-18
 */
public interface ICompanyAccountStatementService extends IService<CompanyAccountStatement> {
    List<CompanyAccountStatementPO> findPageByQuery(Page<CompanyAccountStatement> dbPage, CompanyAccountStatementQuery query);

    /**
     * 检查对账单状态
     *
     * @param idList 对账单ID集合
     * @return 结果
     */
    List<CompanyAccountStatement> checkAccountStatementStatus(List<Long> idList);

    CompanyAccountStatementPO getPoById(Long id);

    List<CompanyAccountStatementPO> accountOrApplyList(Page<CompanyAccountStatement> dbPage, CompanyAccountStatementQuery query);
}
