Newer
Older
newfiber-termite / newfiber-termites / newfiber-termites-dataup / src / main / java / com / newfiber / termite / mapper / TermiteMapper.java
@yanghui yanghui on 20 May 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.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);

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

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

   UnitInfoDto queryUnitdata();

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

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

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