<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gyee.frame.mapper.auto.WfpfdataMapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Wfpfdata">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="WINDPLANT_NO" jdbcType="DECIMAL" property="windplantNo" />
    <id column="MODEL_NO" jdbcType="DECIMAL" property="modelNo" />
    <id column="DATA_TIME" jdbcType="TIMESTAMP" property="dataTime" />
    <result column="NRMSE" jdbcType="FLOAT" property="nrmse" />
    <result column="NMAE" jdbcType="FLOAT" property="nmae" />
    <result column="BIAS" jdbcType="FLOAT" property="bias" />
    <result column="CORRELATION_COEFF" jdbcType="FLOAT" property="correlationCoeff" />
    <result column="ACCURACY_RATE" jdbcType="FLOAT" property="accuracyRate" />
    <result column="DATA_COUNT" jdbcType="DECIMAL" property="dataCount" />
    <result column="DATA_FLAG" jdbcType="DECIMAL" property="dataFlag" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    WINDPLANT_NO, MODEL_NO, DATA_TIME, NRMSE, NMAE, BIAS, CORRELATION_COEFF, ACCURACY_RATE, 
    DATA_COUNT, DATA_FLAG
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WfpfdataExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from WF_DA_PF_DAY_DATA
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="map" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from WF_DA_PF_DAY_DATA
    where WINDPLANT_NO = #{windplantNo,jdbcType=DECIMAL}
      and MODEL_NO = #{modelNo,jdbcType=DECIMAL}
      and DATA_TIME = #{dataTime,jdbcType=TIMESTAMP}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from WF_DA_PF_DAY_DATA
    where WINDPLANT_NO = #{windplantNo,jdbcType=DECIMAL}
      and MODEL_NO = #{modelNo,jdbcType=DECIMAL}
      and DATA_TIME = #{dataTime,jdbcType=TIMESTAMP}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WfpfdataExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from WF_DA_PF_DAY_DATA
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.Wfpfdata">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into WF_DA_PF_DAY_DATA (WINDPLANT_NO, MODEL_NO, DATA_TIME, 
      NRMSE, NMAE, BIAS, CORRELATION_COEFF, 
      ACCURACY_RATE, DATA_COUNT, DATA_FLAG
      )
    values (#{windplantNo,jdbcType=DECIMAL}, #{modelNo,jdbcType=DECIMAL}, #{dataTime,jdbcType=TIMESTAMP}, 
      #{nrmse,jdbcType=FLOAT}, #{nmae,jdbcType=FLOAT}, #{bias,jdbcType=FLOAT}, #{correlationCoeff,jdbcType=FLOAT}, 
      #{accuracyRate,jdbcType=FLOAT}, #{dataCount,jdbcType=DECIMAL}, #{dataFlag,jdbcType=DECIMAL}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Wfpfdata">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into WF_DA_PF_DAY_DATA
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="windplantNo != null">
        WINDPLANT_NO,
      </if>
      <if test="modelNo != null">
        MODEL_NO,
      </if>
      <if test="dataTime != null">
        DATA_TIME,
      </if>
      <if test="nrmse != null">
        NRMSE,
      </if>
      <if test="nmae != null">
        NMAE,
      </if>
      <if test="bias != null">
        BIAS,
      </if>
      <if test="correlationCoeff != null">
        CORRELATION_COEFF,
      </if>
      <if test="accuracyRate != null">
        ACCURACY_RATE,
      </if>
      <if test="dataCount != null">
        DATA_COUNT,
      </if>
      <if test="dataFlag != null">
        DATA_FLAG,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="windplantNo != null">
        #{windplantNo,jdbcType=DECIMAL},
      </if>
      <if test="modelNo != null">
        #{modelNo,jdbcType=DECIMAL},
      </if>
      <if test="dataTime != null">
        #{dataTime,jdbcType=TIMESTAMP},
      </if>
      <if test="nrmse != null">
        #{nrmse,jdbcType=FLOAT},
      </if>
      <if test="nmae != null">
        #{nmae,jdbcType=FLOAT},
      </if>
      <if test="bias != null">
        #{bias,jdbcType=FLOAT},
      </if>
      <if test="correlationCoeff != null">
        #{correlationCoeff,jdbcType=FLOAT},
      </if>
      <if test="accuracyRate != null">
        #{accuracyRate,jdbcType=FLOAT},
      </if>
      <if test="dataCount != null">
        #{dataCount,jdbcType=DECIMAL},
      </if>
      <if test="dataFlag != null">
        #{dataFlag,jdbcType=DECIMAL},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.WfpfdataExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from WF_DA_PF_DAY_DATA
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WF_DA_PF_DAY_DATA
    <set>
      <if test="record.windplantNo != null">
        WINDPLANT_NO = #{record.windplantNo,jdbcType=DECIMAL},
      </if>
      <if test="record.modelNo != null">
        MODEL_NO = #{record.modelNo,jdbcType=DECIMAL},
      </if>
      <if test="record.dataTime != null">
        DATA_TIME = #{record.dataTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.nrmse != null">
        NRMSE = #{record.nrmse,jdbcType=FLOAT},
      </if>
      <if test="record.nmae != null">
        NMAE = #{record.nmae,jdbcType=FLOAT},
      </if>
      <if test="record.bias != null">
        BIAS = #{record.bias,jdbcType=FLOAT},
      </if>
      <if test="record.correlationCoeff != null">
        CORRELATION_COEFF = #{record.correlationCoeff,jdbcType=FLOAT},
      </if>
      <if test="record.accuracyRate != null">
        ACCURACY_RATE = #{record.accuracyRate,jdbcType=FLOAT},
      </if>
      <if test="record.dataCount != null">
        DATA_COUNT = #{record.dataCount,jdbcType=DECIMAL},
      </if>
      <if test="record.dataFlag != null">
        DATA_FLAG = #{record.dataFlag,jdbcType=DECIMAL},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WF_DA_PF_DAY_DATA
    set WINDPLANT_NO = #{record.windplantNo,jdbcType=DECIMAL},
      MODEL_NO = #{record.modelNo,jdbcType=DECIMAL},
      DATA_TIME = #{record.dataTime,jdbcType=TIMESTAMP},
      NRMSE = #{record.nrmse,jdbcType=FLOAT},
      NMAE = #{record.nmae,jdbcType=FLOAT},
      BIAS = #{record.bias,jdbcType=FLOAT},
      CORRELATION_COEFF = #{record.correlationCoeff,jdbcType=FLOAT},
      ACCURACY_RATE = #{record.accuracyRate,jdbcType=FLOAT},
      DATA_COUNT = #{record.dataCount,jdbcType=DECIMAL},
      DATA_FLAG = #{record.dataFlag,jdbcType=DECIMAL}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Wfpfdata">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WF_DA_PF_DAY_DATA
    <set>
      <if test="nrmse != null">
        NRMSE = #{nrmse,jdbcType=FLOAT},
      </if>
      <if test="nmae != null">
        NMAE = #{nmae,jdbcType=FLOAT},
      </if>
      <if test="bias != null">
        BIAS = #{bias,jdbcType=FLOAT},
      </if>
      <if test="correlationCoeff != null">
        CORRELATION_COEFF = #{correlationCoeff,jdbcType=FLOAT},
      </if>
      <if test="accuracyRate != null">
        ACCURACY_RATE = #{accuracyRate,jdbcType=FLOAT},
      </if>
      <if test="dataCount != null">
        DATA_COUNT = #{dataCount,jdbcType=DECIMAL},
      </if>
      <if test="dataFlag != null">
        DATA_FLAG = #{dataFlag,jdbcType=DECIMAL},
      </if>
    </set>
    where WINDPLANT_NO = #{windplantNo,jdbcType=DECIMAL}
      and MODEL_NO = #{modelNo,jdbcType=DECIMAL}
      and DATA_TIME = #{dataTime,jdbcType=TIMESTAMP}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Wfpfdata">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WF_DA_PF_DAY_DATA
    set NRMSE = #{nrmse,jdbcType=FLOAT},
      NMAE = #{nmae,jdbcType=FLOAT},
      BIAS = #{bias,jdbcType=FLOAT},
      CORRELATION_COEFF = #{correlationCoeff,jdbcType=FLOAT},
      ACCURACY_RATE = #{accuracyRate,jdbcType=FLOAT},
      DATA_COUNT = #{dataCount,jdbcType=DECIMAL},
      DATA_FLAG = #{dataFlag,jdbcType=DECIMAL}
    where WINDPLANT_NO = #{windplantNo,jdbcType=DECIMAL}
      and MODEL_NO = #{modelNo,jdbcType=DECIMAL}
      and DATA_TIME = #{dataTime,jdbcType=TIMESTAMP}
  </update>
</mapper>