package com.gyee.frame.mapper.auto;

import com.gyee.frame.model.auto.Alertrule2;
import com.gyee.frame.model.auto.Alertrule2Example;
import com.gyee.frame.model.custom.AlarmTotalVo;
import com.gyee.frame.model.custom.SimpleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ALERTRULE2
     *
     * @mbg.generated
     */
    Alertrule2 selectByPrimaryKey(String id);

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

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

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

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

    List<AlarmTotalVo> getAlarmTotal(@Param("wtId") String wtId, @Param("beginDate") String beginDate, @Param("endDate") String endDate);
    List<SimpleVo> getAlarmTypenum();


}