package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.PaymentChange;
import com.jwipc.finance.mapper.PaymentChangeMapper;
import com.jwipc.finance.model.po.PaymentChangePO;
import com.jwipc.finance.model.query.PaymentChangeQuery;
import com.jwipc.finance.service.IPaymentChangeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 付款申请变更表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-25
 */
@Service
public class PaymentChangeServiceImpl extends ServiceImpl<PaymentChangeMapper, PaymentChange> implements IPaymentChangeService {

    @Override
    public List<PaymentChangePO> findPageByQuery(Page<PaymentChange> dbPage, PaymentChangeQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
