package com.sptg.iot.biz.mapper;

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

import java.util.List;

/**
 * @author zwx
 * @create 2020/10/19 23:03
 */
public interface IotAlarmMapper extends BaseMapper<IotAlarm> {

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

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

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