package com.gyee.frame.mapper.auto;

import com.gyee.frame.model.auto.Noscaledata;
import com.gyee.frame.model.auto.NoscaledataExample;
import java.util.Date;
import java.util.List;

import com.gyee.frame.model.auto.Noscwfdata;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table NOSCALE_WF_DA_PF_PERIOD_DATA
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(@Param("windplantNo") Short windplantNo, @Param("modelNo") Integer modelNo, @Param("dataTime") Date dataTime);

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table NOSCALE_WF_DA_PF_PERIOD_DATA
     *
     * @mbg.generated
     */
    Noscaledata selectByPrimaryKey(@Param("windplantNo") Short windplantNo, @Param("modelNo") Integer modelNo, @Param("dataTime") Date dataTime);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table NOSCALE_WF_DA_PF_PERIOD_DATA
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") Noscaledata record, @Param("example") NoscaledataExample example);
    @Select("select nd.windplant_no,wc.wpfmodel_no,wc.abbr_name,nd.data_time,nd.value from NOSCALE_WF_DA_PF_PERIOD_DATA nd left join wf_file_config wc on nd.windplant_no=wc.windplant_no where rownum<=100000 order by nd.data_time desc")
    List<Noscwfdata> slectGlyc();
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table NOSCALE_WF_DA_PF_PERIOD_DATA
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") Noscaledata record, @Param("example") NoscaledataExample example);

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

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