package com.jwipc.tender.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.page.PageUtil;
import com.jwipc.page.PageView;
import com.jwipc.tender.entity.BidQuota;
import com.jwipc.tender.mapper.BidQuotaMapper;
import com.jwipc.tender.model.po.BidQuotaPO;
import com.jwipc.tender.model.query.BidQuotaQuery;
import com.jwipc.tender.service.IBidQuotaService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author AL
 * @since 2024-03-02
 */
@Service
public class BidQuotaServiceImpl extends ServiceImpl<BidQuotaMapper, BidQuota> implements IBidQuotaService {
    @Override
    public List<BidQuotaPO> findPageByQuery(Page<BidQuota> dbPage, BidQuotaQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }

}
