package com.jwipc.finance.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CompanyAccountStatement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.finance.entity.CompanyAccountStatement;
import com.jwipc.finance.model.po.CompanyAccountStatementPO;
import com.jwipc.finance.model.query.CompanyAccountStatementQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对账模块-公司间销售对账单主表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-18
 */
public interface CompanyAccountStatementMapper extends BaseMapper<CompanyAccountStatement> {
    List<CompanyAccountStatementPO> findPageByQuery(@Param("query") CompanyAccountStatementQuery query);

    List<CompanyAccountStatementPO> findPageByQuery(Page<CompanyAccountStatement> dbPage, @Param("query") CompanyAccountStatementQuery query);

    List<CompanyAccountStatement> checkAccountStatementStatus(@Param("idList") List<Long> idList);

    CompanyAccountStatementPO getPoById(@Param("id") Long id);

    List<CompanyAccountStatementPO> accountOrApplyList(@Param("query") CompanyAccountStatementQuery query);

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