package com.jwipc.order.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.AppointmentDocker;
import com.jwipc.order.mapper.AppointmentDockerMapper;
import com.jwipc.order.model.query.AppointmentDockerQuery;
import com.jwipc.order.service.IAppointmentDockerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 预约工厂码头配置表 服务实现类
 * </p>
 *
 * @author WT
 * @since 2024-03-05
 */
@Service
public class AppointmentDockerServiceImpl extends ServiceImpl<AppointmentDockerMapper, AppointmentDocker> implements IAppointmentDockerService {

    @Override
    public List<AppointmentDocker> queryByPage(Page<AppointmentDocker> dbPage,AppointmentDockerQuery query) {
        if(dbPage == null){
            return baseMapper.queryByPage(query);
        }
        return baseMapper.queryByPage(dbPage,query);
    }
}
