package com.jwipc.supplier.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.supplier.entity.RelationBid;
import com.jwipc.supplier.mapper.RelationBidMapper;
import com.jwipc.supplier.service.IRelationBidService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.supplier.entity.RelationBid;
import com.jwipc.supplier.model.po.RelationBidPO;
import com.jwipc.supplier.model.query.SupRelationBidQuery;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 代理商关系维护表 服务实现类
 * </p>
 *
 * @author Al
 * @since 2024-03-26
 */
@Service
public class RelationBidServiceImpl extends ServiceImpl<RelationBidMapper, RelationBid> implements IRelationBidService {

    @Override
    public List<RelationBidPO> findPageByQuery(Page<RelationBid> dbPage, SupRelationBidQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
    @Override
    public RelationBidPO getDataById(Long id) {
        return baseMapper.getDataById(id);
    }
}
