package com.patzn.lims.drug.service.impl;

import com.patzn.lims.drug.entity.DrugItemAllocate;
import com.patzn.lims.drug.mapper.DrugItemAllocateMapper;
import com.patzn.lims.drug.service.IDrugItemAllocateService;
import com.patzn.lims.core.web.BaseServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wwd
 * @since 2020-03-06
 */
@Service
public class DrugItemAllocateServiceImpl extends BaseServiceImpl<DrugItemAllocateMapper, DrugItemAllocate> implements IDrugItemAllocateService {

    @Override
    public Page<DrugItemAllocate> page(Page<DrugItemAllocate> page, DrugItemAllocate drugItemAllocate) {
        QueryWrapper<DrugItemAllocate> wrapper = Wrappers.<DrugItemAllocate>query(drugItemAllocate);
        return this.page(page, wrapper);
    }
}
