package cn.pluss.platform.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import cn.pluss.platform.entity.Device;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DeviceMapper extends BaseMapper<Device> {

    public Device queryDevice(Device device);

    public List<Device> queryDeviceList(Device device);

    public void saveDevice(Device device);

    public void updateDevice(Device device);

    public void deleteDevice(Device device);

    public List<Device> queryDevicePage(Map map);

    public Integer queryDevicePageCount(Map map);

    public void saveDeviceBatch(List<Device>  deviceList);

    Page<Device> pageDate(Page<Device> page, @Param("device") Device device);

    Device getDeviceId(Integer id);
}

