package com.jwipc.finance.mapper;

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

import java.util.List;

/**
 * <p>
 * 对账模块-费用对账单主表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-03
 */
public interface CostAccountStatementMapper extends BaseMapper<CostAccountStatement> {

    List<CostAccountStatementPO> findPageByQuery(@Param("query") CostAccountStatementQuery query);

    List<CostAccountStatementPO> findPageByQuery(Page<CostAccountStatement> dbPage,@Param("query") CostAccountStatementQuery query);

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

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

    List<CostAccountStatementPO> accountOrApplyList(@Param("query") CostAccountStatementQuery query);

    List<CostAccountStatementPO> accountOrApplyList(Page<CostAccountStatement> dbPage, @Param("query") CostAccountStatementQuery query);
}
