package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.PaymentReceipt;
import com.jwipc.finance.mapper.PaymentReceiptMapper;
import com.jwipc.finance.model.query.PaymentReceiptQuery;
import com.jwipc.finance.service.IPaymentReceiptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 付款申请回执单 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-12-05
 */
@Service
public class PaymentReceiptServiceImpl extends ServiceImpl<PaymentReceiptMapper, PaymentReceipt> implements IPaymentReceiptService {

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