<?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.EarlywarningAnalysisPushMapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.EarlywarningAnalysisPush">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="DECIMAL" property="id" />
    <result column="COUNTDAY" jdbcType="VARCHAR" property="countday" />
    <result column="STATIONID" jdbcType="VARCHAR" property="stationid" />
    <result column="STATIONNAME" jdbcType="VARCHAR" property="stationname" />
    <result column="WINDTURBINEID" jdbcType="VARCHAR" property="windturbineid" />
    <result column="WINDTURBINENAME" jdbcType="VARCHAR" property="windturbinename" />
    <result column="WARNGRAD" jdbcType="VARCHAR" property="warngrad" />
    <result column="WARNNAME" jdbcType="VARCHAR" property="warnname" />
    <result column="WARNCOUNT" jdbcType="DECIMAL" property="warncount" />
    <result column="WARNMINUTE" jdbcType="DECIMAL" property="warnminute" />
    <result column="SNAPID" jdbcType="DECIMAL" property="snapid" />
    <result column="RELATEPARTS" jdbcType="VARCHAR" property="relateparts" />
    <result column="RELATEPARTSTEXT" jdbcType="VARCHAR" property="relatepartstext" />
    <result column="MAINTENANCEADVICEID" jdbcType="DECIMAL" property="maintenanceadviceid" />
    <result column="REASONSPROBLEM" jdbcType="VARCHAR" property="reasonsproblem" />
    <result column="BEHEBUNGCRAFT" jdbcType="VARCHAR" property="behebungcraft" />
    <result column="LEFTOVERPROBLEM" jdbcType="VARCHAR" property="leftoverproblem" />
    <result column="COUNTTIME" jdbcType="TIMESTAMP" property="counttime" />
  </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, COUNTDAY, STATIONID, STATIONNAME, WINDTURBINEID, WINDTURBINENAME, WARNGRAD, WARNNAME, 
    WARNCOUNT, WARNMINUTE, SNAPID, RELATEPARTS, RELATEPARTSTEXT, MAINTENANCEADVICEID, 
    REASONSPROBLEM, BEHEBUNGCRAFT, LEFTOVERPROBLEM, COUNTTIME
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.EarlywarningAnalysisPushExample" 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 EARLYWARNINGANALYSISPUSH
    <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 EARLYWARNINGANALYSISPUSH
    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 EARLYWARNINGANALYSISPUSH
    where ID = #{id,jdbcType=DECIMAL}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.EarlywarningAnalysisPushExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from EARLYWARNINGANALYSISPUSH
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.EarlywarningAnalysisPush">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into EARLYWARNINGANALYSISPUSH (ID, COUNTDAY, STATIONID, 
      STATIONNAME, WINDTURBINEID, WINDTURBINENAME, 
      WARNGRAD, WARNNAME, WARNCOUNT, 
      WARNMINUTE, SNAPID, RELATEPARTS, 
      RELATEPARTSTEXT, MAINTENANCEADVICEID, REASONSPROBLEM, 
      BEHEBUNGCRAFT, LEFTOVERPROBLEM, COUNTTIME
      )
    values (#{id,jdbcType=DECIMAL}, #{countday,jdbcType=VARCHAR}, #{stationid,jdbcType=VARCHAR}, 
      #{stationname,jdbcType=VARCHAR}, #{windturbineid,jdbcType=VARCHAR}, #{windturbinename,jdbcType=VARCHAR}, 
      #{warngrad,jdbcType=VARCHAR}, #{warnname,jdbcType=VARCHAR}, #{warncount,jdbcType=DECIMAL}, 
      #{warnminute,jdbcType=DECIMAL}, #{snapid,jdbcType=DECIMAL}, #{relateparts,jdbcType=VARCHAR}, 
      #{relatepartstext,jdbcType=VARCHAR}, #{maintenanceadviceid,jdbcType=DECIMAL}, #{reasonsproblem,jdbcType=VARCHAR}, 
      #{behebungcraft,jdbcType=VARCHAR}, #{leftoverproblem,jdbcType=VARCHAR}, #{counttime,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.EarlywarningAnalysisPush">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into EARLYWARNINGANALYSISPUSH
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="countday != null">
        COUNTDAY,
      </if>
      <if test="stationid != null">
        STATIONID,
      </if>
      <if test="stationname != null">
        STATIONNAME,
      </if>
      <if test="windturbineid != null">
        WINDTURBINEID,
      </if>
      <if test="windturbinename != null">
        WINDTURBINENAME,
      </if>
      <if test="warngrad != null">
        WARNGRAD,
      </if>
      <if test="warnname != null">
        WARNNAME,
      </if>
      <if test="warncount != null">
        WARNCOUNT,
      </if>
      <if test="warnminute != null">
        WARNMINUTE,
      </if>
      <if test="snapid != null">
        SNAPID,
      </if>
      <if test="relateparts != null">
        RELATEPARTS,
      </if>
      <if test="relatepartstext != null">
        RELATEPARTSTEXT,
      </if>
      <if test="maintenanceadviceid != null">
        MAINTENANCEADVICEID,
      </if>
      <if test="reasonsproblem != null">
        REASONSPROBLEM,
      </if>
      <if test="behebungcraft != null">
        BEHEBUNGCRAFT,
      </if>
      <if test="leftoverproblem != null">
        LEFTOVERPROBLEM,
      </if>
      <if test="counttime != null">
        COUNTTIME,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=DECIMAL},
      </if>
      <if test="countday != null">
        #{countday,jdbcType=VARCHAR},
      </if>
      <if test="stationid != null">
        #{stationid,jdbcType=VARCHAR},
      </if>
      <if test="stationname != null">
        #{stationname,jdbcType=VARCHAR},
      </if>
      <if test="windturbineid != null">
        #{windturbineid,jdbcType=VARCHAR},
      </if>
      <if test="windturbinename != null">
        #{windturbinename,jdbcType=VARCHAR},
      </if>
      <if test="warngrad != null">
        #{warngrad,jdbcType=VARCHAR},
      </if>
      <if test="warnname != null">
        #{warnname,jdbcType=VARCHAR},
      </if>
      <if test="warncount != null">
        #{warncount,jdbcType=DECIMAL},
      </if>
      <if test="warnminute != null">
        #{warnminute,jdbcType=DECIMAL},
      </if>
      <if test="snapid != null">
        #{snapid,jdbcType=DECIMAL},
      </if>
      <if test="relateparts != null">
        #{relateparts,jdbcType=VARCHAR},
      </if>
      <if test="relatepartstext != null">
        #{relatepartstext,jdbcType=VARCHAR},
      </if>
      <if test="maintenanceadviceid != null">
        #{maintenanceadviceid,jdbcType=DECIMAL},
      </if>
      <if test="reasonsproblem != null">
        #{reasonsproblem,jdbcType=VARCHAR},
      </if>
      <if test="behebungcraft != null">
        #{behebungcraft,jdbcType=VARCHAR},
      </if>
      <if test="leftoverproblem != null">
        #{leftoverproblem,jdbcType=VARCHAR},
      </if>
      <if test="counttime != null">
        #{counttime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.EarlywarningAnalysisPushExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from EARLYWARNINGANALYSISPUSH
    <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 EARLYWARNINGANALYSISPUSH
    <set>
      <if test="record.id != null">
        ID = #{record.id,jdbcType=DECIMAL},
      </if>
      <if test="record.countday != null">
        COUNTDAY = #{record.countday,jdbcType=VARCHAR},
      </if>
      <if test="record.stationid != null">
        STATIONID = #{record.stationid,jdbcType=VARCHAR},
      </if>
      <if test="record.stationname != null">
        STATIONNAME = #{record.stationname,jdbcType=VARCHAR},
      </if>
      <if test="record.windturbineid != null">
        WINDTURBINEID = #{record.windturbineid,jdbcType=VARCHAR},
      </if>
      <if test="record.windturbinename != null">
        WINDTURBINENAME = #{record.windturbinename,jdbcType=VARCHAR},
      </if>
      <if test="record.warngrad != null">
        WARNGRAD = #{record.warngrad,jdbcType=VARCHAR},
      </if>
      <if test="record.warnname != null">
        WARNNAME = #{record.warnname,jdbcType=VARCHAR},
      </if>
      <if test="record.warncount != null">
        WARNCOUNT = #{record.warncount,jdbcType=DECIMAL},
      </if>
      <if test="record.warnminute != null">
        WARNMINUTE = #{record.warnminute,jdbcType=DECIMAL},
      </if>
      <if test="record.snapid != null">
        SNAPID = #{record.snapid,jdbcType=DECIMAL},
      </if>
      <if test="record.relateparts != null">
        RELATEPARTS = #{record.relateparts,jdbcType=VARCHAR},
      </if>
      <if test="record.relatepartstext != null">
        RELATEPARTSTEXT = #{record.relatepartstext,jdbcType=VARCHAR},
      </if>
      <if test="record.maintenanceadviceid != null">
        MAINTENANCEADVICEID = #{record.maintenanceadviceid,jdbcType=DECIMAL},
      </if>
      <if test="record.reasonsproblem != null">
        REASONSPROBLEM = #{record.reasonsproblem,jdbcType=VARCHAR},
      </if>
      <if test="record.behebungcraft != null">
        BEHEBUNGCRAFT = #{record.behebungcraft,jdbcType=VARCHAR},
      </if>
      <if test="record.leftoverproblem != null">
        LEFTOVERPROBLEM = #{record.leftoverproblem,jdbcType=VARCHAR},
      </if>
      <if test="record.counttime != null">
        COUNTTIME = #{record.counttime,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 EARLYWARNINGANALYSISPUSH
    set ID = #{record.id,jdbcType=DECIMAL},
      COUNTDAY = #{record.countday,jdbcType=VARCHAR},
      STATIONID = #{record.stationid,jdbcType=VARCHAR},
      STATIONNAME = #{record.stationname,jdbcType=VARCHAR},
      WINDTURBINEID = #{record.windturbineid,jdbcType=VARCHAR},
      WINDTURBINENAME = #{record.windturbinename,jdbcType=VARCHAR},
      WARNGRAD = #{record.warngrad,jdbcType=VARCHAR},
      WARNNAME = #{record.warnname,jdbcType=VARCHAR},
      WARNCOUNT = #{record.warncount,jdbcType=DECIMAL},
      WARNMINUTE = #{record.warnminute,jdbcType=DECIMAL},
      SNAPID = #{record.snapid,jdbcType=DECIMAL},
      RELATEPARTS = #{record.relateparts,jdbcType=VARCHAR},
      RELATEPARTSTEXT = #{record.relatepartstext,jdbcType=VARCHAR},
      MAINTENANCEADVICEID = #{record.maintenanceadviceid,jdbcType=DECIMAL},
      REASONSPROBLEM = #{record.reasonsproblem,jdbcType=VARCHAR},
      BEHEBUNGCRAFT = #{record.behebungcraft,jdbcType=VARCHAR},
      LEFTOVERPROBLEM = #{record.leftoverproblem,jdbcType=VARCHAR},
      COUNTTIME = #{record.counttime,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.EarlywarningAnalysisPush">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update EARLYWARNINGANALYSISPUSH
    <set>
      <if test="countday != null">
        COUNTDAY = #{countday,jdbcType=VARCHAR},
      </if>
      <if test="stationid != null">
        STATIONID = #{stationid,jdbcType=VARCHAR},
      </if>
      <if test="stationname != null">
        STATIONNAME = #{stationname,jdbcType=VARCHAR},
      </if>
      <if test="windturbineid != null">
        WINDTURBINEID = #{windturbineid,jdbcType=VARCHAR},
      </if>
      <if test="windturbinename != null">
        WINDTURBINENAME = #{windturbinename,jdbcType=VARCHAR},
      </if>
      <if test="warngrad != null">
        WARNGRAD = #{warngrad,jdbcType=VARCHAR},
      </if>
      <if test="warnname != null">
        WARNNAME = #{warnname,jdbcType=VARCHAR},
      </if>
      <if test="warncount != null">
        WARNCOUNT = #{warncount,jdbcType=DECIMAL},
      </if>
      <if test="warnminute != null">
        WARNMINUTE = #{warnminute,jdbcType=DECIMAL},
      </if>
      <if test="snapid != null">
        SNAPID = #{snapid,jdbcType=DECIMAL},
      </if>
      <if test="relateparts != null">
        RELATEPARTS = #{relateparts,jdbcType=VARCHAR},
      </if>
      <if test="relatepartstext != null">
        RELATEPARTSTEXT = #{relatepartstext,jdbcType=VARCHAR},
      </if>
      <if test="maintenanceadviceid != null">
        MAINTENANCEADVICEID = #{maintenanceadviceid,jdbcType=DECIMAL},
      </if>
      <if test="reasonsproblem != null">
        REASONSPROBLEM = #{reasonsproblem,jdbcType=VARCHAR},
      </if>
      <if test="behebungcraft != null">
        BEHEBUNGCRAFT = #{behebungcraft,jdbcType=VARCHAR},
      </if>
      <if test="leftoverproblem != null">
        LEFTOVERPROBLEM = #{leftoverproblem,jdbcType=VARCHAR},
      </if>
      <if test="counttime != null">
        COUNTTIME = #{counttime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where ID = #{id,jdbcType=DECIMAL}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.EarlywarningAnalysisPush">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update EARLYWARNINGANALYSISPUSH
    set COUNTDAY = #{countday,jdbcType=VARCHAR},
      STATIONID = #{stationid,jdbcType=VARCHAR},
      STATIONNAME = #{stationname,jdbcType=VARCHAR},
      WINDTURBINEID = #{windturbineid,jdbcType=VARCHAR},
      WINDTURBINENAME = #{windturbinename,jdbcType=VARCHAR},
      WARNGRAD = #{warngrad,jdbcType=VARCHAR},
      WARNNAME = #{warnname,jdbcType=VARCHAR},
      WARNCOUNT = #{warncount,jdbcType=DECIMAL},
      WARNMINUTE = #{warnminute,jdbcType=DECIMAL},
      SNAPID = #{snapid,jdbcType=DECIMAL},
      RELATEPARTS = #{relateparts,jdbcType=VARCHAR},
      RELATEPARTSTEXT = #{relatepartstext,jdbcType=VARCHAR},
      MAINTENANCEADVICEID = #{maintenanceadviceid,jdbcType=DECIMAL},
      REASONSPROBLEM = #{reasonsproblem,jdbcType=VARCHAR},
      BEHEBUNGCRAFT = #{behebungcraft,jdbcType=VARCHAR},
      LEFTOVERPROBLEM = #{leftoverproblem,jdbcType=VARCHAR},
      COUNTTIME = #{counttime,jdbcType=TIMESTAMP}
    where ID = #{id,jdbcType=DECIMAL}
  </update>
</mapper>