<?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.WeatherfdMapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Weatherfd">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <result column="RECODEDATA" jdbcType="TIMESTAMP" property="recodedata" />
    <result column="REGION" jdbcType="VARCHAR" property="region" />
    <result column="WINDPOWERSTATIONID" jdbcType="VARCHAR" property="windpowerstationid" />
    <result column="WEATHER" jdbcType="VARCHAR" property="weather" />
    <result column="MAXIMUMTEM" jdbcType="DECIMAL" property="maximumtem" />
    <result column="MINIMUMTEM" jdbcType="DECIMAL" property="minimumtem" />
    <result column="SUNRISE" jdbcType="VARCHAR" property="sunrise" />
    <result column="SUNSET" jdbcType="VARCHAR" property="sunset" />
    <result column="SUNDURATION" jdbcType="DECIMAL" property="sunduration" />
    <result column="WEATHER1" jdbcType="VARCHAR" property="weather1" />
    <result column="TEMPERATURE1" jdbcType="DECIMAL" property="temperature1" />
    <result column="REALFEEL1" jdbcType="DECIMAL" property="realfeel1" />
    <result column="PRECIPITATION1" jdbcType="DECIMAL" property="precipitation1" />
    <result column="WINDDIRECTION1" jdbcType="VARCHAR" property="winddirection1" />
    <result column="SPEED1" jdbcType="DECIMAL" property="speed1" />
    <result column="GUST1" jdbcType="DECIMAL" property="gust1" />
    <result column="WEATHER2" jdbcType="VARCHAR" property="weather2" />
    <result column="TEMPERATURE2" jdbcType="DECIMAL" property="temperature2" />
    <result column="REALFEEL2" jdbcType="DECIMAL" property="realfeel2" />
    <result column="PRECIPITATION2" jdbcType="DECIMAL" property="precipitation2" />
    <result column="WINDDIRECTION2" jdbcType="VARCHAR" property="winddirection2" />
    <result column="SPEED2" jdbcType="DECIMAL" property="speed2" />
    <result column="GUST2" jdbcType="DECIMAL" property="gust2" />
  </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, RECODEDATA, REGION, WINDPOWERSTATIONID, WEATHER, MAXIMUMTEM, MINIMUMTEM, SUNRISE, 
    SUNSET, SUNDURATION, WEATHER1, TEMPERATURE1, REALFEEL1, PRECIPITATION1, WINDDIRECTION1, 
    SPEED1, GUST1, WEATHER2, TEMPERATURE2, REALFEEL2, PRECIPITATION2, WINDDIRECTION2, 
    SPEED2, GUST2
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WeatherfdExample" 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 WEATHERFD
    <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.String" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from WEATHERFD
    where ID = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from WEATHERFD
    where ID = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WeatherfdExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from WEATHERFD
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.Weatherfd">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into WEATHERFD (ID, RECODEDATA, REGION, 
      WINDPOWERSTATIONID, WEATHER, MAXIMUMTEM, 
      MINIMUMTEM, SUNRISE, SUNSET, 
      SUNDURATION, WEATHER1, TEMPERATURE1, 
      REALFEEL1, PRECIPITATION1, WINDDIRECTION1, 
      SPEED1, GUST1, WEATHER2, 
      TEMPERATURE2, REALFEEL2, PRECIPITATION2, 
      WINDDIRECTION2, SPEED2, GUST2
      )
    values (#{id,jdbcType=VARCHAR}, #{recodedata,jdbcType=TIMESTAMP}, #{region,jdbcType=VARCHAR}, 
      #{windpowerstationid,jdbcType=VARCHAR}, #{weather,jdbcType=VARCHAR}, #{maximumtem,jdbcType=DECIMAL}, 
      #{minimumtem,jdbcType=DECIMAL}, #{sunrise,jdbcType=VARCHAR}, #{sunset,jdbcType=VARCHAR}, 
      #{sunduration,jdbcType=DECIMAL}, #{weather1,jdbcType=VARCHAR}, #{temperature1,jdbcType=DECIMAL}, 
      #{realfeel1,jdbcType=DECIMAL}, #{precipitation1,jdbcType=DECIMAL}, #{winddirection1,jdbcType=VARCHAR}, 
      #{speed1,jdbcType=DECIMAL}, #{gust1,jdbcType=DECIMAL}, #{weather2,jdbcType=VARCHAR}, 
      #{temperature2,jdbcType=DECIMAL}, #{realfeel2,jdbcType=DECIMAL}, #{precipitation2,jdbcType=DECIMAL}, 
      #{winddirection2,jdbcType=VARCHAR}, #{speed2,jdbcType=DECIMAL}, #{gust2,jdbcType=DECIMAL}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Weatherfd">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into WEATHERFD
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="recodedata != null">
        RECODEDATA,
      </if>
      <if test="region != null">
        REGION,
      </if>
      <if test="windpowerstationid != null">
        WINDPOWERSTATIONID,
      </if>
      <if test="weather != null">
        WEATHER,
      </if>
      <if test="maximumtem != null">
        MAXIMUMTEM,
      </if>
      <if test="minimumtem != null">
        MINIMUMTEM,
      </if>
      <if test="sunrise != null">
        SUNRISE,
      </if>
      <if test="sunset != null">
        SUNSET,
      </if>
      <if test="sunduration != null">
        SUNDURATION,
      </if>
      <if test="weather1 != null">
        WEATHER1,
      </if>
      <if test="temperature1 != null">
        TEMPERATURE1,
      </if>
      <if test="realfeel1 != null">
        REALFEEL1,
      </if>
      <if test="precipitation1 != null">
        PRECIPITATION1,
      </if>
      <if test="winddirection1 != null">
        WINDDIRECTION1,
      </if>
      <if test="speed1 != null">
        SPEED1,
      </if>
      <if test="gust1 != null">
        GUST1,
      </if>
      <if test="weather2 != null">
        WEATHER2,
      </if>
      <if test="temperature2 != null">
        TEMPERATURE2,
      </if>
      <if test="realfeel2 != null">
        REALFEEL2,
      </if>
      <if test="precipitation2 != null">
        PRECIPITATION2,
      </if>
      <if test="winddirection2 != null">
        WINDDIRECTION2,
      </if>
      <if test="speed2 != null">
        SPEED2,
      </if>
      <if test="gust2 != null">
        GUST2,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="recodedata != null">
        #{recodedata,jdbcType=TIMESTAMP},
      </if>
      <if test="region != null">
        #{region,jdbcType=VARCHAR},
      </if>
      <if test="windpowerstationid != null">
        #{windpowerstationid,jdbcType=VARCHAR},
      </if>
      <if test="weather != null">
        #{weather,jdbcType=VARCHAR},
      </if>
      <if test="maximumtem != null">
        #{maximumtem,jdbcType=DECIMAL},
      </if>
      <if test="minimumtem != null">
        #{minimumtem,jdbcType=DECIMAL},
      </if>
      <if test="sunrise != null">
        #{sunrise,jdbcType=VARCHAR},
      </if>
      <if test="sunset != null">
        #{sunset,jdbcType=VARCHAR},
      </if>
      <if test="sunduration != null">
        #{sunduration,jdbcType=DECIMAL},
      </if>
      <if test="weather1 != null">
        #{weather1,jdbcType=VARCHAR},
      </if>
      <if test="temperature1 != null">
        #{temperature1,jdbcType=DECIMAL},
      </if>
      <if test="realfeel1 != null">
        #{realfeel1,jdbcType=DECIMAL},
      </if>
      <if test="precipitation1 != null">
        #{precipitation1,jdbcType=DECIMAL},
      </if>
      <if test="winddirection1 != null">
        #{winddirection1,jdbcType=VARCHAR},
      </if>
      <if test="speed1 != null">
        #{speed1,jdbcType=DECIMAL},
      </if>
      <if test="gust1 != null">
        #{gust1,jdbcType=DECIMAL},
      </if>
      <if test="weather2 != null">
        #{weather2,jdbcType=VARCHAR},
      </if>
      <if test="temperature2 != null">
        #{temperature2,jdbcType=DECIMAL},
      </if>
      <if test="realfeel2 != null">
        #{realfeel2,jdbcType=DECIMAL},
      </if>
      <if test="precipitation2 != null">
        #{precipitation2,jdbcType=DECIMAL},
      </if>
      <if test="winddirection2 != null">
        #{winddirection2,jdbcType=VARCHAR},
      </if>
      <if test="speed2 != null">
        #{speed2,jdbcType=DECIMAL},
      </if>
      <if test="gust2 != null">
        #{gust2,jdbcType=DECIMAL},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.WeatherfdExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from WEATHERFD
    <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 WEATHERFD
    <set>
      <if test="record.id != null">
        ID = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.recodedata != null">
        RECODEDATA = #{record.recodedata,jdbcType=TIMESTAMP},
      </if>
      <if test="record.region != null">
        REGION = #{record.region,jdbcType=VARCHAR},
      </if>
      <if test="record.windpowerstationid != null">
        WINDPOWERSTATIONID = #{record.windpowerstationid,jdbcType=VARCHAR},
      </if>
      <if test="record.weather != null">
        WEATHER = #{record.weather,jdbcType=VARCHAR},
      </if>
      <if test="record.maximumtem != null">
        MAXIMUMTEM = #{record.maximumtem,jdbcType=DECIMAL},
      </if>
      <if test="record.minimumtem != null">
        MINIMUMTEM = #{record.minimumtem,jdbcType=DECIMAL},
      </if>
      <if test="record.sunrise != null">
        SUNRISE = #{record.sunrise,jdbcType=VARCHAR},
      </if>
      <if test="record.sunset != null">
        SUNSET = #{record.sunset,jdbcType=VARCHAR},
      </if>
      <if test="record.sunduration != null">
        SUNDURATION = #{record.sunduration,jdbcType=DECIMAL},
      </if>
      <if test="record.weather1 != null">
        WEATHER1 = #{record.weather1,jdbcType=VARCHAR},
      </if>
      <if test="record.temperature1 != null">
        TEMPERATURE1 = #{record.temperature1,jdbcType=DECIMAL},
      </if>
      <if test="record.realfeel1 != null">
        REALFEEL1 = #{record.realfeel1,jdbcType=DECIMAL},
      </if>
      <if test="record.precipitation1 != null">
        PRECIPITATION1 = #{record.precipitation1,jdbcType=DECIMAL},
      </if>
      <if test="record.winddirection1 != null">
        WINDDIRECTION1 = #{record.winddirection1,jdbcType=VARCHAR},
      </if>
      <if test="record.speed1 != null">
        SPEED1 = #{record.speed1,jdbcType=DECIMAL},
      </if>
      <if test="record.gust1 != null">
        GUST1 = #{record.gust1,jdbcType=DECIMAL},
      </if>
      <if test="record.weather2 != null">
        WEATHER2 = #{record.weather2,jdbcType=VARCHAR},
      </if>
      <if test="record.temperature2 != null">
        TEMPERATURE2 = #{record.temperature2,jdbcType=DECIMAL},
      </if>
      <if test="record.realfeel2 != null">
        REALFEEL2 = #{record.realfeel2,jdbcType=DECIMAL},
      </if>
      <if test="record.precipitation2 != null">
        PRECIPITATION2 = #{record.precipitation2,jdbcType=DECIMAL},
      </if>
      <if test="record.winddirection2 != null">
        WINDDIRECTION2 = #{record.winddirection2,jdbcType=VARCHAR},
      </if>
      <if test="record.speed2 != null">
        SPEED2 = #{record.speed2,jdbcType=DECIMAL},
      </if>
      <if test="record.gust2 != null">
        GUST2 = #{record.gust2,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 WEATHERFD
    set ID = #{record.id,jdbcType=VARCHAR},
      RECODEDATA = #{record.recodedata,jdbcType=TIMESTAMP},
      REGION = #{record.region,jdbcType=VARCHAR},
      WINDPOWERSTATIONID = #{record.windpowerstationid,jdbcType=VARCHAR},
      WEATHER = #{record.weather,jdbcType=VARCHAR},
      MAXIMUMTEM = #{record.maximumtem,jdbcType=DECIMAL},
      MINIMUMTEM = #{record.minimumtem,jdbcType=DECIMAL},
      SUNRISE = #{record.sunrise,jdbcType=VARCHAR},
      SUNSET = #{record.sunset,jdbcType=VARCHAR},
      SUNDURATION = #{record.sunduration,jdbcType=DECIMAL},
      WEATHER1 = #{record.weather1,jdbcType=VARCHAR},
      TEMPERATURE1 = #{record.temperature1,jdbcType=DECIMAL},
      REALFEEL1 = #{record.realfeel1,jdbcType=DECIMAL},
      PRECIPITATION1 = #{record.precipitation1,jdbcType=DECIMAL},
      WINDDIRECTION1 = #{record.winddirection1,jdbcType=VARCHAR},
      SPEED1 = #{record.speed1,jdbcType=DECIMAL},
      GUST1 = #{record.gust1,jdbcType=DECIMAL},
      WEATHER2 = #{record.weather2,jdbcType=VARCHAR},
      TEMPERATURE2 = #{record.temperature2,jdbcType=DECIMAL},
      REALFEEL2 = #{record.realfeel2,jdbcType=DECIMAL},
      PRECIPITATION2 = #{record.precipitation2,jdbcType=DECIMAL},
      WINDDIRECTION2 = #{record.winddirection2,jdbcType=VARCHAR},
      SPEED2 = #{record.speed2,jdbcType=DECIMAL},
      GUST2 = #{record.gust2,jdbcType=DECIMAL}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Weatherfd">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WEATHERFD
    <set>
      <if test="recodedata != null">
        RECODEDATA = #{recodedata,jdbcType=TIMESTAMP},
      </if>
      <if test="region != null">
        REGION = #{region,jdbcType=VARCHAR},
      </if>
      <if test="windpowerstationid != null">
        WINDPOWERSTATIONID = #{windpowerstationid,jdbcType=VARCHAR},
      </if>
      <if test="weather != null">
        WEATHER = #{weather,jdbcType=VARCHAR},
      </if>
      <if test="maximumtem != null">
        MAXIMUMTEM = #{maximumtem,jdbcType=DECIMAL},
      </if>
      <if test="minimumtem != null">
        MINIMUMTEM = #{minimumtem,jdbcType=DECIMAL},
      </if>
      <if test="sunrise != null">
        SUNRISE = #{sunrise,jdbcType=VARCHAR},
      </if>
      <if test="sunset != null">
        SUNSET = #{sunset,jdbcType=VARCHAR},
      </if>
      <if test="sunduration != null">
        SUNDURATION = #{sunduration,jdbcType=DECIMAL},
      </if>
      <if test="weather1 != null">
        WEATHER1 = #{weather1,jdbcType=VARCHAR},
      </if>
      <if test="temperature1 != null">
        TEMPERATURE1 = #{temperature1,jdbcType=DECIMAL},
      </if>
      <if test="realfeel1 != null">
        REALFEEL1 = #{realfeel1,jdbcType=DECIMAL},
      </if>
      <if test="precipitation1 != null">
        PRECIPITATION1 = #{precipitation1,jdbcType=DECIMAL},
      </if>
      <if test="winddirection1 != null">
        WINDDIRECTION1 = #{winddirection1,jdbcType=VARCHAR},
      </if>
      <if test="speed1 != null">
        SPEED1 = #{speed1,jdbcType=DECIMAL},
      </if>
      <if test="gust1 != null">
        GUST1 = #{gust1,jdbcType=DECIMAL},
      </if>
      <if test="weather2 != null">
        WEATHER2 = #{weather2,jdbcType=VARCHAR},
      </if>
      <if test="temperature2 != null">
        TEMPERATURE2 = #{temperature2,jdbcType=DECIMAL},
      </if>
      <if test="realfeel2 != null">
        REALFEEL2 = #{realfeel2,jdbcType=DECIMAL},
      </if>
      <if test="precipitation2 != null">
        PRECIPITATION2 = #{precipitation2,jdbcType=DECIMAL},
      </if>
      <if test="winddirection2 != null">
        WINDDIRECTION2 = #{winddirection2,jdbcType=VARCHAR},
      </if>
      <if test="speed2 != null">
        SPEED2 = #{speed2,jdbcType=DECIMAL},
      </if>
      <if test="gust2 != null">
        GUST2 = #{gust2,jdbcType=DECIMAL},
      </if>
    </set>
    where ID = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Weatherfd">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WEATHERFD
    set RECODEDATA = #{recodedata,jdbcType=TIMESTAMP},
      REGION = #{region,jdbcType=VARCHAR},
      WINDPOWERSTATIONID = #{windpowerstationid,jdbcType=VARCHAR},
      WEATHER = #{weather,jdbcType=VARCHAR},
      MAXIMUMTEM = #{maximumtem,jdbcType=DECIMAL},
      MINIMUMTEM = #{minimumtem,jdbcType=DECIMAL},
      SUNRISE = #{sunrise,jdbcType=VARCHAR},
      SUNSET = #{sunset,jdbcType=VARCHAR},
      SUNDURATION = #{sunduration,jdbcType=DECIMAL},
      WEATHER1 = #{weather1,jdbcType=VARCHAR},
      TEMPERATURE1 = #{temperature1,jdbcType=DECIMAL},
      REALFEEL1 = #{realfeel1,jdbcType=DECIMAL},
      PRECIPITATION1 = #{precipitation1,jdbcType=DECIMAL},
      WINDDIRECTION1 = #{winddirection1,jdbcType=VARCHAR},
      SPEED1 = #{speed1,jdbcType=DECIMAL},
      GUST1 = #{gust1,jdbcType=DECIMAL},
      WEATHER2 = #{weather2,jdbcType=VARCHAR},
      TEMPERATURE2 = #{temperature2,jdbcType=DECIMAL},
      REALFEEL2 = #{realfeel2,jdbcType=DECIMAL},
      PRECIPITATION2 = #{precipitation2,jdbcType=DECIMAL},
      WINDDIRECTION2 = #{winddirection2,jdbcType=VARCHAR},
      SPEED2 = #{speed2,jdbcType=DECIMAL},
      GUST2 = #{gust2,jdbcType=DECIMAL}
    where ID = #{id,jdbcType=VARCHAR}
  </update>
</mapper>