package com.jwipc.order.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.AppointmentPurchase;
import com.jwipc.order.mapper.AppointmentPurchaseMapper;
import com.jwipc.order.model.po.AppointmentPurchasePO;
import com.jwipc.order.model.query.AppointmentPurchaseQuery;
import com.jwipc.order.service.IAppointmentPurchaseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 低值供应商采购类预约 服务实现类
 * </p>
 *
 * @author WT
 * @since 2024-03-06
 */
@Service
public class AppointmentPurchaseServiceImpl extends ServiceImpl<AppointmentPurchaseMapper, AppointmentPurchase> implements IAppointmentPurchaseService {

    @Override
    public List<AppointmentPurchasePO> selectListByPage(Page<AppointmentPurchase> dbPage, AppointmentPurchaseQuery query) {
        if(dbPage == null){
            return baseMapper.selectListByPage(query);
        }
        return baseMapper.selectListByPage(dbPage,query);
    }
}
