package com.topsail.influxdb.mapper;
|
|
|
|
import com.topsail.influxdb.entity.DeviceBelongInfo;
|
|
import com.topsail.influxdb.entity.DeviceLogData;
|
|
import com.topsail.influxdb.entity.SupplierVO;
|
|
import com.topsail.influxdb.entity.SyncDataFlag;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
public interface DeviceInfoMapper {
|
|
/**
|
|
* 查询设备的所属信息
|
|
*
|
|
* @param imei
|
|
* @return
|
|
*/
|
|
DeviceBelongInfo queryDeviceBelongInfo(@Param("imei") String imei);
|
|
|
|
/**
|
|
* 查询圣地蓝设备同步标志信息
|
|
*
|
|
* @return
|
|
*/
|
|
|
|
List<SyncDataFlag> querySyncDeviceDataFlagInfo(@Param("imei") String imei);
|
|
List<SyncDataFlag> querySyncDeviceLogFlagInfo(@Param("imei") String imei);
|
|
|
|
/**
|
|
* 根据设备编号查询设备命令下发日志数据
|
|
*
|
|
* @param imei
|
|
* @return
|
|
*/
|
|
List<DeviceLogData> queryDeviceLogData(@Param("imei") String imei, @Param("companyId") Integer companyId);
|
|
|
|
/**
|
|
* 更新设备同步标志信息
|
|
*
|
|
* @param id
|
|
* @param flag
|
|
*/
|
|
void updateSyncDeviceDataFlagInfo(@Param("id") Integer id, @Param("flag") Integer flag);
|
|
|
|
void updateSyncDeviceLogFlagInfo(@Param("id") Integer id, @Param("flag") Integer flag);
|
|
|
|
List<SupplierVO> getSupplierList();
|
|
}
|