package com.jwipc.inquiry.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.inquiry.entity.InquirySupplierQuoteLog;
import com.jwipc.inquiry.mapper.InquirySupplierQuoteLogMapper;
import com.jwipc.inquiry.model.po.InquirySupplierQuoteLogPO;
import com.jwipc.inquiry.model.query.InquirySupplierQuoteLogQuery;
import com.jwipc.inquiry.service.IInquirySupplierQuoteLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 询价供应商报价日志 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-25
 */
@Service
public class InquirySupplierQuoteLogServiceImpl extends ServiceImpl<InquirySupplierQuoteLogMapper, InquirySupplierQuoteLog> implements IInquirySupplierQuoteLogService {

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