package com.topsail.influxdb.mapper;
|
|
|
|
import com.topsail.influxdb.pojo.Alarm;
|
|
import com.topsail.influxdb.pojo.AlarmExample;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
public interface AlarmMapper {
|
|
long countByExample(AlarmExample example);
|
|
|
|
int deleteByExample(AlarmExample example);
|
|
|
|
int deleteByPrimaryKey(Long id);
|
|
|
|
int insert(Alarm record);
|
|
|
|
int insertAlarmData(@Param("alarmData") Alarm record);
|
|
|
|
int updateAlarmData(Alarm record);
|
|
|
|
int insertAlarmDataMonth(@Param("alarmData") Alarm record);
|
|
|
|
|
|
Alarm findAlarmData(@Param("imei")String imei);
|
|
|
|
|
|
int insertSelective(Alarm record);
|
|
|
|
List<Alarm> selectByExample(AlarmExample example);
|
|
|
|
Alarm selectByPrimaryKey(Long id);
|
|
|
|
int updateByExampleSelective(@Param("record") Alarm record, @Param("example") AlarmExample example);
|
|
|
|
int updateByExample(@Param("record") Alarm record, @Param("example") AlarmExample example);
|
|
|
|
int updateByPrimaryKeySelective(Alarm record);
|
|
|
|
int updateByPrimaryKey(Alarm record);
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table alarm
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
int batchInsert(@Param("list") List<Alarm> list);
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table alarm
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
int batchInsertSelective(@Param("list") List<Alarm> list, @Param("selective") Alarm.Column ... selective);
|
|
|
|
int deleteAlarmDataMonth(@Param("endTime") Date endTime);
|
|
}
|