Newer
Older
newfiber-termite / newfiber-termites / newfiber-termites-dataup / src / main / java / com / newfiber / termite / mapper / TermiteMapper.java
@xiongkai xiongkai on 4 Jun 2 KB 设备状态同步接口
package com.newfiber.termite.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newfiber.termite.domain.Termite;
import com.newfiber.termite.domain.dto.AlarmDataDto;
import com.newfiber.termite.domain.dto.DeviceInfoDto;
import com.newfiber.termite.domain.dto.UnitInfoDto;
import com.newfiber.termite.domain.request.*;
import com.newfiber.termite.domain.response.DataUpResponse;
import com.newfiber.termite.domain.response.TermiteInfoResponse;
import lombok.Data;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TermiteMapper extends BaseMapper<Termite> {

   @Deprecated
   void addtermiteData(@Param("sn")String sn, @Param("datadate")String date,@Param("druing")String druing
           , @Param("uptime")Date uptime, @Param("url")String url,@Param("software")String software,@Param("hardware")String hardware
   ,@Param("temperature")String temperature,@Param("voltage")String voltage,@Param("rssi")String rssi
   ,@Param("ap")String ap,@Param("camera")String camera);

   @Deprecated
   void updatephotoIdentify(@Param("id")String id,@Param("yesnoant")String yesnoant,  @Param("url")String url);

   List<TermiteInfoResponse> querytermiteData(@Param("request") TermiteInfoQueryRequest request);

   TermiteInfoResponse queryMonitorData(@Param("request")TermiteHistoryQueryRequest request);

   @Deprecated
   void updateMonitorData(@Param("request")TermiteInfoUpdateyRequest request);

   void updateMonitorDevice(@Param("request") DeviceInfoUpdateRequest request);

   List<TermiteInfoResponse> queryhistoryData(@Param("request")TermiteHistoryQueryRequest request);

   void insertMonitorDevice(@Param("request")TermiteInfoSaveRequest request);

   void removeMonitorDevice(@Param("id")String id);

   String querynewphoto(@Param("sn")String sn);

   void updateModlefirstData(@Param("sn")String sn,@Param("newphoto")String newphoto);

   DataUpResponse queryDataUpResponse(@Param("sn")String sn);

   UnitInfoDto queryUnitdata();

   @Deprecated
   List<AlarmDataDto> queryAlarmdata(@Param("projectCode")String projectCode);

   @Deprecated
   void updateDeviceLastUpTime(@Param("sn")String sn ,@Param("lastDate") String lastDate);

   List<DeviceInfoDto> queryDeviceData(@Param("projectCode")String projectCode);
}