Newer
Older
newfiber-termite / newfiber-termites / newfiber-termites-dataup / src / main / java / com / newfiber / termite / mapper / TermiteMapper.java
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.TermiteHistoryQueryRequest;
import com.newfiber.termite.domain.request.TermiteInfoQueryRequest;
import com.newfiber.termite.domain.request.TermiteInfoSaveRequest;
import com.newfiber.termite.domain.request.TermiteInfoUpdateyRequest;
import com.newfiber.termite.domain.response.TermiteInfoResponse;
import org.apache.ibatis.annotations.Param;

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

public interface TermiteMapper extends BaseMapper<Termite> {

   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);


   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);

   void updateMonitorData(@Param("request")TermiteInfoUpdateyRequest 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);

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

   UnitInfoDto queryUnitdata();

   List<AlarmDataDto> queryAlarmdata();

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

   List<DeviceInfoDto> queryDeviceData();
}