package com.gyee.frame.mapper.auto;

import com.gyee.frame.model.auto.Alarmsnap;
import com.gyee.frame.model.auto.AlarmsnapExample;
import com.gyee.frame.model.custom.TotalNumVo;
import com.gyee.frame.model.custom.TotalNumsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AlarmsnapMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    long countByExample(AlarmsnapExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    int deleteByExample(AlarmsnapExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    int insert(Alarmsnap record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    int insertSelective(Alarmsnap record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    List<Alarmsnap> selectByExample(AlarmsnapExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    Alarmsnap selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") Alarmsnap record, @Param("example") AlarmsnapExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") Alarmsnap record, @Param("example") AlarmsnapExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(Alarmsnap record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALARMSNAP
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(Alarmsnap record);

    List<TotalNumsVo> getAlarmhistoryList(@Param("tname") String tname, @Param("beginDate") String beginDate, @Param("endDate") String endDate);

    List<TotalNumVo> findAlertrulefailuresubMap();


}