package com.chinaitop.depot.intelligent.ventilation.mapper;

import com.chinaitop.depot.intelligent.ventilation.model.TVentilation;
import com.chinaitop.depot.intelligent.ventilation.model.TVentilationExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface TVentilationMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    int countByExample(TVentilationExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    int deleteByExample(TVentilationExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    int insert(TVentilation record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    int insertSelective(TVentilation record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    List<TVentilation> selectByExample(TVentilationExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    TVentilation selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    int updateByExampleSelective(@Param("record") TVentilation record, @Param("example") TVentilationExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    int updateByExample(@Param("record") TVentilation record, @Param("example") TVentilationExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    int updateByPrimaryKeySelective(TVentilation record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_ventilation
     *
     * @mbggenerated Tue Jun 09 10:55:51 CST 2020
     */
    int updateByPrimaryKey(TVentilation record);
    
    
    void insertBatch(List<TVentilation> tEnergyInfos);

    TVentilation getByCode(Map<String, Object> modelMap);
}