package com.sptg.iot.biz.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.sptg.iot.api.entity.IotDevice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zwx
 * @create 2020/10/22 17:24
 */
public interface IotDeviceMapper extends BaseMapper<IotDevice> {

    public List<IotDevice> getList(@Param(value = "ew") Wrapper<IotDevice> wrapper);

    public IotDevice getOne(@Param(value = "ew") Wrapper<IotDevice> wrapper);

    List<IotDevice> pagingQuery(@Param(value = "ew") Wrapper<IotDevice> wrapper,
                                @Param(value = "current") Pagination page);
}
