package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.PaymentMatching;
import com.jwipc.finance.mapper.PaymentMatchingMapper;
import com.jwipc.finance.model.po.PaymentMatchingPO;
import com.jwipc.finance.model.query.PaymentMatchingQuery;
import com.jwipc.finance.service.IPaymentMatchingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 对账模块-货款匹配单主表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-10-23
 */
@Service
public class PaymentMatchingServiceImpl extends ServiceImpl<PaymentMatchingMapper, PaymentMatching> implements IPaymentMatchingService {

    @Override
    public List<PaymentMatchingPO> findPageByQuery(Page<PaymentMatching> dbPage, PaymentMatchingQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
