package com.jwipc.order.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.AppointmentSupplier;
import com.jwipc.order.mapper.AppointmentSupplierMapper;
import com.jwipc.order.model.po.AppointmentSupplierPO;
import com.jwipc.order.model.query.AppointmentSupplierQuery;
import com.jwipc.order.service.IAppointmentSupplierService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 送货单预约供应商配置 服务实现类
 * </p>
 *
 * @author WT
 * @since 2024-03-04
 */
@Service
public class AppointmentSupplierServiceImpl extends ServiceImpl<AppointmentSupplierMapper, AppointmentSupplier> implements IAppointmentSupplierService {

    @Override
    public List<AppointmentSupplierPO> findPageByQuery(Page<AppointmentSupplier> dbPage, AppointmentSupplierQuery query) {
        if(dbPage == null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
