package com.njzscloud.supervisory.device.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.supervisory.device.pojo.entity.DeviceLocalizerEntity;
import com.njzscloud.supervisory.device.pojo.result.SearchDeviceLocalizerResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 定位器
 */
@Mapper
public interface DeviceLocalizerMapper extends BaseMapper<DeviceLocalizerEntity> {

    List<DeviceLocalizerEntity> canDel(@Param("ew") QueryWrapper<DeviceLocalizerEntity> ew);

    SearchDeviceLocalizerResult detail(@Param("id") Long id);

    IPage<SearchDeviceLocalizerResult> paging(Page<Object> page, @Param("ew") QueryWrapper<?> ew);
}
