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.FinPaymentConfirmLog;
import com.jwipc.finance.mapper.FinPaymentConfirmLogMapper;
import com.jwipc.finance.model.po.FinPaymentConfirmLogPO;
import com.jwipc.finance.model.query.FinPaymentConfirmLogQuery;
import com.jwipc.finance.service.IFinPaymentConfirmLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  付款单警告确认日志-服务实现类
 * </p>
 *
 * @author Chen Tianshi
 * @since 2025/12/15 19:48
 */
@Service
public class IFinPaymentConfirmLogServiceImpl extends ServiceImpl<FinPaymentConfirmLogMapper, FinPaymentConfirmLog> implements IFinPaymentConfirmLogService {
    @Override
    public List<FinPaymentConfirmLogPO> queryByPage(Page<FinPaymentConfirmLog> dbPage, FinPaymentConfirmLogQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
