package com.jwipc.finance.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.AccountStatement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.finance.model.po.AccountStatementPO;
import com.jwipc.finance.model.po.ImgCodePO;
import com.jwipc.finance.model.query.AccountStatementQuery;
import com.jwipc.finance.model.query.ImgCodeQuery;

import java.util.List;

/**
 * <p>
 * 对账模块-对账单主表 服务类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-03-04
 */
public interface IAccountStatementService extends IService<AccountStatement> {

    List<AccountStatementPO> findPageByQuery(Page<AccountStatement> dbPage, AccountStatementQuery query);

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

    AccountStatementPO selectPoById(Long id);

    List<AccountStatementPO> accountOrApplyList(Page<AccountStatement> dbPage, AccountStatementQuery query);
    List<AccountStatementPO> accountOrApplyListByNo(AccountStatementQuery query);
    List<AccountStatementPO> findAccountStatementByYM(AccountStatementQuery query);
    List<AccountStatementPO> findAccountStatementBySupplierCodeS(AccountStatementQuery query);
    List<AccountStatementPO> findAccountStatementBySupplierCodeS2(AccountStatementQuery query);
    List<AccountStatementPO> findAccountStatementBySupplierCodeD(AccountStatementQuery query);

    List<ImgCodePO> findImgCodePage(Page<AccountStatement> dbPage, ImgCodeQuery query);
}
