package com.gyee.frame.mapper.auto;

import com.gyee.frame.model.auto.Windturbinepoweryaw;
import com.gyee.frame.model.auto.WindturbinepoweryawExample;
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 WindturbinepoweryawMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table WINDTURBINEPOWERYAW
     *
     * @mbg.generated
     */
    long countByExample(WindturbinepoweryawExample example);

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

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

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table WINDTURBINEPOWERYAW
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(Windturbinepoweryaw 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);

}