package com.gyee.frame.mapper.auto;

import com.gyee.frame.model.auto.Windturbinewindyaw;
import com.gyee.frame.model.auto.WindturbinewindyawExample;
import com.gyee.frame.model.custom.YawValuesVo;
import com.gyee.frame.model.custom.YawVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

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

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

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

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

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

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

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

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

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

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

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

    List<YawVo> getYawTotal(@Param("wtId") String wtId, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

    List<YawValuesVo> getYawValuesTotal(@Param("wtId") String wtId, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate, @Param("value") Integer value);

    List<YawValuesVo> getYawTotalAll(@Param("wtId") String wtId, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

}