package com.gyee.frame.mapper.auto;

import com.gyee.frame.model.auto.FaultInfo;
import com.gyee.frame.model.auto.Scadafault;
import com.gyee.frame.model.auto.ScadafaultExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table SCADAFAULT
     *
     * @mbg.generated
     */
    Scadafault selectByPrimaryKey(Short id);

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

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

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

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

    List<FaultInfo> selectByGZ(Date faulttime);
}