<?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.ForecastwindspeedMapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Forecastwindspeed">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="DECIMAL" property="id" />
    <result column="WPID" jdbcType="VARCHAR" property="wpid" />
    <result column="WPNAME" jdbcType="VARCHAR" property="wpname" />
    <result column="RECODEDATE" jdbcType="TIMESTAMP" property="recodedate" />
    <result column="DAYSPEED" jdbcType="DECIMAL" property="dayspeed" />
    <result column="DAYPOWER" jdbcType="DECIMAL" property="daypower" />
    <result column="NIGHTSPEED" jdbcType="DECIMAL" property="nightspeed" />
    <result column="NIGHTPOWER" jdbcType="DECIMAL" property="nightpower" />
    <result column="PJID" jdbcType="VARCHAR" property="pjid" />
    <result column="PJNAME" jdbcType="VARCHAR" property="pjname" />
    <result column="CREATEDATE" jdbcType="TIMESTAMP" property="createdate" />
  </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.
    -->
    ID, WPID, WPNAME, RECODEDATE, DAYSPEED, DAYPOWER, NIGHTSPEED, NIGHTPOWER, PJID, PJNAME, 
    CREATEDATE
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.ForecastwindspeedExample" 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 FORECASTWINDSPEED
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from FORECASTWINDSPEED
    where ID = #{id,jdbcType=DECIMAL}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from FORECASTWINDSPEED
    where ID = #{id,jdbcType=DECIMAL}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.ForecastwindspeedExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from FORECASTWINDSPEED
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.Forecastwindspeed">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into FORECASTWINDSPEED (ID, WPID, WPNAME, 
      RECODEDATE, DAYSPEED, DAYPOWER, 
      NIGHTSPEED, NIGHTPOWER, PJID, 
      PJNAME, CREATEDATE)
    values (#{id,jdbcType=DECIMAL}, #{wpid,jdbcType=VARCHAR}, #{wpname,jdbcType=VARCHAR}, 
      #{recodedate,jdbcType=TIMESTAMP}, #{dayspeed,jdbcType=DECIMAL}, #{daypower,jdbcType=DECIMAL}, 
      #{nightspeed,jdbcType=DECIMAL}, #{nightpower,jdbcType=DECIMAL}, #{pjid,jdbcType=VARCHAR}, 
      #{pjname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Forecastwindspeed">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into FORECASTWINDSPEED
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="wpid != null">
        WPID,
      </if>
      <if test="wpname != null">
        WPNAME,
      </if>
      <if test="recodedate != null">
        RECODEDATE,
      </if>
      <if test="dayspeed != null">
        DAYSPEED,
      </if>
      <if test="daypower != null">
        DAYPOWER,
      </if>
      <if test="nightspeed != null">
        NIGHTSPEED,
      </if>
      <if test="nightpower != null">
        NIGHTPOWER,
      </if>
      <if test="pjid != null">
        PJID,
      </if>
      <if test="pjname != null">
        PJNAME,
      </if>
      <if test="createdate != null">
        CREATEDATE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=DECIMAL},
      </if>
      <if test="wpid != null">
        #{wpid,jdbcType=VARCHAR},
      </if>
      <if test="wpname != null">
        #{wpname,jdbcType=VARCHAR},
      </if>
      <if test="recodedate != null">
        #{recodedate,jdbcType=TIMESTAMP},
      </if>
      <if test="dayspeed != null">
        #{dayspeed,jdbcType=DECIMAL},
      </if>
      <if test="daypower != null">
        #{daypower,jdbcType=DECIMAL},
      </if>
      <if test="nightspeed != null">
        #{nightspeed,jdbcType=DECIMAL},
      </if>
      <if test="nightpower != null">
        #{nightpower,jdbcType=DECIMAL},
      </if>
      <if test="pjid != null">
        #{pjid,jdbcType=VARCHAR},
      </if>
      <if test="pjname != null">
        #{pjname,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null">
        #{createdate,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.ForecastwindspeedExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from FORECASTWINDSPEED
    <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 FORECASTWINDSPEED
    <set>
      <if test="record.id != null">
        ID = #{record.id,jdbcType=DECIMAL},
      </if>
      <if test="record.wpid != null">
        WPID = #{record.wpid,jdbcType=VARCHAR},
      </if>
      <if test="record.wpname != null">
        WPNAME = #{record.wpname,jdbcType=VARCHAR},
      </if>
      <if test="record.recodedate != null">
        RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.dayspeed != null">
        DAYSPEED = #{record.dayspeed,jdbcType=DECIMAL},
      </if>
      <if test="record.daypower != null">
        DAYPOWER = #{record.daypower,jdbcType=DECIMAL},
      </if>
      <if test="record.nightspeed != null">
        NIGHTSPEED = #{record.nightspeed,jdbcType=DECIMAL},
      </if>
      <if test="record.nightpower != null">
        NIGHTPOWER = #{record.nightpower,jdbcType=DECIMAL},
      </if>
      <if test="record.pjid != null">
        PJID = #{record.pjid,jdbcType=VARCHAR},
      </if>
      <if test="record.pjname != null">
        PJNAME = #{record.pjname,jdbcType=VARCHAR},
      </if>
      <if test="record.createdate != null">
        CREATEDATE = #{record.createdate,jdbcType=TIMESTAMP},
      </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 FORECASTWINDSPEED
    set ID = #{record.id,jdbcType=DECIMAL},
      WPID = #{record.wpid,jdbcType=VARCHAR},
      WPNAME = #{record.wpname,jdbcType=VARCHAR},
      RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
      DAYSPEED = #{record.dayspeed,jdbcType=DECIMAL},
      DAYPOWER = #{record.daypower,jdbcType=DECIMAL},
      NIGHTSPEED = #{record.nightspeed,jdbcType=DECIMAL},
      NIGHTPOWER = #{record.nightpower,jdbcType=DECIMAL},
      PJID = #{record.pjid,jdbcType=VARCHAR},
      PJNAME = #{record.pjname,jdbcType=VARCHAR},
      CREATEDATE = #{record.createdate,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Forecastwindspeed">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update FORECASTWINDSPEED
    <set>
      <if test="wpid != null">
        WPID = #{wpid,jdbcType=VARCHAR},
      </if>
      <if test="wpname != null">
        WPNAME = #{wpname,jdbcType=VARCHAR},
      </if>
      <if test="recodedate != null">
        RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
      </if>
      <if test="dayspeed != null">
        DAYSPEED = #{dayspeed,jdbcType=DECIMAL},
      </if>
      <if test="daypower != null">
        DAYPOWER = #{daypower,jdbcType=DECIMAL},
      </if>
      <if test="nightspeed != null">
        NIGHTSPEED = #{nightspeed,jdbcType=DECIMAL},
      </if>
      <if test="nightpower != null">
        NIGHTPOWER = #{nightpower,jdbcType=DECIMAL},
      </if>
      <if test="pjid != null">
        PJID = #{pjid,jdbcType=VARCHAR},
      </if>
      <if test="pjname != null">
        PJNAME = #{pjname,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null">
        CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
      </if>
    </set>
    where ID = #{id,jdbcType=DECIMAL}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Forecastwindspeed">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update FORECASTWINDSPEED
    set WPID = #{wpid,jdbcType=VARCHAR},
      WPNAME = #{wpname,jdbcType=VARCHAR},
      RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
      DAYSPEED = #{dayspeed,jdbcType=DECIMAL},
      DAYPOWER = #{daypower,jdbcType=DECIMAL},
      NIGHTSPEED = #{nightspeed,jdbcType=DECIMAL},
      NIGHTPOWER = #{nightpower,jdbcType=DECIMAL},
      PJID = #{pjid,jdbcType=VARCHAR},
      PJNAME = #{pjname,jdbcType=VARCHAR},
      CREATEDATE = #{createdate,jdbcType=TIMESTAMP}
    where ID = #{id,jdbcType=DECIMAL}
  </update>
</mapper>