package com.jwipc.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.AccountStatement;
import com.jwipc.finance.entity.PaymentPlan;
import com.jwipc.finance.model.po.AccountStatementPO;
import com.jwipc.finance.model.po.PaymentPlanPO;
import com.jwipc.finance.model.query.AccountStatementQuery;
import com.jwipc.finance.model.query.PaymentPlanQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对账模块-付款计划主表 Mapper 接口
 * </p>
 *
 * @author 邓京术
 * @since 2025-07-14
 */
public interface PaymentPlanMapper extends BaseMapper<PaymentPlan> {

    List<PaymentPlanPO> findPageByQuery(@Param("query") PaymentPlanQuery query);

    List<PaymentPlanPO> findPageByQuery(Page<PaymentPlan> dbPage, @Param("query") PaymentPlanQuery query);

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

    PaymentPlanPO selectPoById(@Param("id") Long id);

//    List<AccountStatementPO> accountOrApplyList(@Param("query") AccountStatementQuery query);
//
//    List<AccountStatementPO> accountOrApplyList(Page<AccountStatement> dbPage, @Param("query") AccountStatementQuery query);
//    List<AccountStatementPO> accountOrApplyListByNo(@Param("query") AccountStatementQuery query);
}
