package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.finance.entity.PaymentPlanApprove;
import com.jwipc.finance.mapper.PaymentPlanApproveMapper;
import com.jwipc.finance.model.po.PaymentPlanApprovePO;
import com.jwipc.finance.model.query.PpApproveQuery;
import com.jwipc.finance.service.IPaymentPlanApproveService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 对账模块-付款计划单审批记录表 服务实现类
 * </p>
 *
 * @author 邓京术
 * @since 2025-07-22
 */
@Service
public class PaymentPlanApproveServiceImpl extends ServiceImpl<PaymentPlanApproveMapper, PaymentPlanApprove> implements IPaymentPlanApproveService {

    @Override
    public List<PaymentPlanApprovePO> findPageByQuery(Page<PaymentPlanApprove> dbPage, PpApproveQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
