package com.jwipc.inquiry.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.inquiry.entity.Inquiry;
import com.jwipc.inquiry.entity.InquiryMaterial;
import com.jwipc.inquiry.entity.PriceInfo;
import com.jwipc.inquiry.mapper.InquiryMaterialMapper;
import com.jwipc.inquiry.mapper.PriceWarningMapper;
import com.jwipc.inquiry.model.po.AssistantMaterialSupplierPO;
import com.jwipc.inquiry.model.po.InquiryMaterialPO;
import com.jwipc.inquiry.model.po.InquiryPO;
import com.jwipc.inquiry.model.po.PriceWarningPO;
import com.jwipc.inquiry.model.query.InquiryMaterialQuery;
import com.jwipc.inquiry.model.query.InquiryQuery;
import com.jwipc.inquiry.model.query.PriceWarningQuery;
import com.jwipc.inquiry.service.IInquiryMaterialService;
import com.jwipc.inquiry.service.IPriceWarningService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 询价物料表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-21
 */
@Service
public class PriceWarningServiceImpl extends ServiceImpl<PriceWarningMapper, PriceInfo> implements IPriceWarningService {


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