<?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.P3TaskMapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.P3Task">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <result column="TASKCODE" jdbcType="VARCHAR" property="taskcode" />
    <result column="WINDPOWERSTATIONID" jdbcType="VARCHAR" property="windpowerstationid" />
    <result column="WINDTURBINEID" jdbcType="VARCHAR" property="windturbineid" />
    <result column="WARNINGID" jdbcType="VARCHAR" property="warningid" />
    <result column="PARTID" jdbcType="VARCHAR" property="partid" />
    <result column="FREQUENCYCOUNT" jdbcType="DECIMAL" property="frequencycount" />
    <result column="FAULTCYCLE" jdbcType="DECIMAL" property="faultcycle" />
    <result column="SHUTDOWNAVGTIME" jdbcType="DECIMAL" property="shutdownavgtime" />
    <result column="EXPECTLOSTPOWER" jdbcType="DECIMAL" property="expectlostpower" />
    <result column="HANDLEWAY" jdbcType="CHAR" property="handleway" />
    <result column="TASKTYPE" jdbcType="CHAR" property="tasktype" />
    <result column="TASKCLASS" jdbcType="CHAR" property="taskclass" />
    <result column="TASKSTATUS" jdbcType="CHAR" property="taskstatus" />
    <result column="TASKMADETIME" jdbcType="TIMESTAMP" property="taskmadetime" />
    <result column="LASTFAULTTIME" jdbcType="TIMESTAMP" property="lastfaulttime" />
    <result column="STOPTIME" jdbcType="TIMESTAMP" property="stoptime" />
    <result column="TASKSTARTTIME" jdbcType="TIMESTAMP" property="taskstarttime" />
    <result column="TASKRECEIVETIME" jdbcType="TIMESTAMP" property="taskreceivetime" />
    <result column="ARRIVESPOTTIME" jdbcType="TIMESTAMP" property="arrivespottime" />
    <result column="EXPECTFINISHTIME" jdbcType="TIMESTAMP" property="expectfinishtime" />
    <result column="USERID" jdbcType="VARCHAR" property="userid" />
    <result column="USERNAME" jdbcType="VARCHAR" property="username" />
    <result column="RECOMMENDTIME" jdbcType="TIMESTAMP" property="recommendtime" />
    <result column="TASKFINISHTIME" jdbcType="TIMESTAMP" property="taskfinishtime" />
    <result column="FINISHGRIDCONNECTTIME" jdbcType="TIMESTAMP" property="finishgridconnecttime" />
    <result column="FACTLOSTPOWER" jdbcType="DECIMAL" property="factlostpower" />
    <result column="TASKMADEUSERID" jdbcType="VARCHAR" property="taskmadeuserid" />
    <result column="TASKMADEUSERNAME" jdbcType="VARCHAR" property="taskmadeusername" />
    <result column="FAILURECAUSEID" jdbcType="VARCHAR" property="failurecauseid" />
    <result column="WARNINGLEVEL" jdbcType="CHAR" property="warninglevel" />
  </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, TASKCODE, WINDPOWERSTATIONID, WINDTURBINEID, WARNINGID, PARTID, FREQUENCYCOUNT, 
    FAULTCYCLE, SHUTDOWNAVGTIME, EXPECTLOSTPOWER, HANDLEWAY, TASKTYPE, TASKCLASS, TASKSTATUS, 
    TASKMADETIME, LASTFAULTTIME, STOPTIME, TASKSTARTTIME, TASKRECEIVETIME, ARRIVESPOTTIME, 
    EXPECTFINISHTIME, USERID, USERNAME, RECOMMENDTIME, TASKFINISHTIME, FINISHGRIDCONNECTTIME, 
    FACTLOSTPOWER, TASKMADEUSERID, TASKMADEUSERNAME, FAILURECAUSEID, WARNINGLEVEL
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.P3TaskExample" 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 P3_TASK
    <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 P3_TASK
    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 P3_TASK
    where ID = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.P3TaskExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from P3_TASK
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.P3Task">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into P3_TASK (ID, TASKCODE, WINDPOWERSTATIONID, 
      WINDTURBINEID, WARNINGID, PARTID, 
      FREQUENCYCOUNT, FAULTCYCLE, SHUTDOWNAVGTIME, 
      EXPECTLOSTPOWER, HANDLEWAY, TASKTYPE, 
      TASKCLASS, TASKSTATUS, TASKMADETIME, 
      LASTFAULTTIME, STOPTIME, TASKSTARTTIME, 
      TASKRECEIVETIME, ARRIVESPOTTIME, EXPECTFINISHTIME, 
      USERID, USERNAME, RECOMMENDTIME, 
      TASKFINISHTIME, FINISHGRIDCONNECTTIME, 
      FACTLOSTPOWER, TASKMADEUSERID, TASKMADEUSERNAME, 
      FAILURECAUSEID, WARNINGLEVEL)
    values (#{id,jdbcType=VARCHAR}, #{taskcode,jdbcType=VARCHAR}, #{windpowerstationid,jdbcType=VARCHAR}, 
      #{windturbineid,jdbcType=VARCHAR}, #{warningid,jdbcType=VARCHAR}, #{partid,jdbcType=VARCHAR}, 
      #{frequencycount,jdbcType=DECIMAL}, #{faultcycle,jdbcType=DECIMAL}, #{shutdownavgtime,jdbcType=DECIMAL}, 
      #{expectlostpower,jdbcType=DECIMAL}, #{handleway,jdbcType=CHAR}, #{tasktype,jdbcType=CHAR}, 
      #{taskclass,jdbcType=CHAR}, #{taskstatus,jdbcType=CHAR}, #{taskmadetime,jdbcType=TIMESTAMP}, 
      #{lastfaulttime,jdbcType=TIMESTAMP}, #{stoptime,jdbcType=TIMESTAMP}, #{taskstarttime,jdbcType=TIMESTAMP}, 
      #{taskreceivetime,jdbcType=TIMESTAMP}, #{arrivespottime,jdbcType=TIMESTAMP}, #{expectfinishtime,jdbcType=TIMESTAMP}, 
      #{userid,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{recommendtime,jdbcType=TIMESTAMP}, 
      #{taskfinishtime,jdbcType=TIMESTAMP}, #{finishgridconnecttime,jdbcType=TIMESTAMP}, 
      #{factlostpower,jdbcType=DECIMAL}, #{taskmadeuserid,jdbcType=VARCHAR}, #{taskmadeusername,jdbcType=VARCHAR}, 
      #{failurecauseid,jdbcType=VARCHAR}, #{warninglevel,jdbcType=CHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.P3Task">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into P3_TASK
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="taskcode != null">
        TASKCODE,
      </if>
      <if test="windpowerstationid != null">
        WINDPOWERSTATIONID,
      </if>
      <if test="windturbineid != null">
        WINDTURBINEID,
      </if>
      <if test="warningid != null">
        WARNINGID,
      </if>
      <if test="partid != null">
        PARTID,
      </if>
      <if test="frequencycount != null">
        FREQUENCYCOUNT,
      </if>
      <if test="faultcycle != null">
        FAULTCYCLE,
      </if>
      <if test="shutdownavgtime != null">
        SHUTDOWNAVGTIME,
      </if>
      <if test="expectlostpower != null">
        EXPECTLOSTPOWER,
      </if>
      <if test="handleway != null">
        HANDLEWAY,
      </if>
      <if test="tasktype != null">
        TASKTYPE,
      </if>
      <if test="taskclass != null">
        TASKCLASS,
      </if>
      <if test="taskstatus != null">
        TASKSTATUS,
      </if>
      <if test="taskmadetime != null">
        TASKMADETIME,
      </if>
      <if test="lastfaulttime != null">
        LASTFAULTTIME,
      </if>
      <if test="stoptime != null">
        STOPTIME,
      </if>
      <if test="taskstarttime != null">
        TASKSTARTTIME,
      </if>
      <if test="taskreceivetime != null">
        TASKRECEIVETIME,
      </if>
      <if test="arrivespottime != null">
        ARRIVESPOTTIME,
      </if>
      <if test="expectfinishtime != null">
        EXPECTFINISHTIME,
      </if>
      <if test="userid != null">
        USERID,
      </if>
      <if test="username != null">
        USERNAME,
      </if>
      <if test="recommendtime != null">
        RECOMMENDTIME,
      </if>
      <if test="taskfinishtime != null">
        TASKFINISHTIME,
      </if>
      <if test="finishgridconnecttime != null">
        FINISHGRIDCONNECTTIME,
      </if>
      <if test="factlostpower != null">
        FACTLOSTPOWER,
      </if>
      <if test="taskmadeuserid != null">
        TASKMADEUSERID,
      </if>
      <if test="taskmadeusername != null">
        TASKMADEUSERNAME,
      </if>
      <if test="failurecauseid != null">
        FAILURECAUSEID,
      </if>
      <if test="warninglevel != null">
        WARNINGLEVEL,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="taskcode != null">
        #{taskcode,jdbcType=VARCHAR},
      </if>
      <if test="windpowerstationid != null">
        #{windpowerstationid,jdbcType=VARCHAR},
      </if>
      <if test="windturbineid != null">
        #{windturbineid,jdbcType=VARCHAR},
      </if>
      <if test="warningid != null">
        #{warningid,jdbcType=VARCHAR},
      </if>
      <if test="partid != null">
        #{partid,jdbcType=VARCHAR},
      </if>
      <if test="frequencycount != null">
        #{frequencycount,jdbcType=DECIMAL},
      </if>
      <if test="faultcycle != null">
        #{faultcycle,jdbcType=DECIMAL},
      </if>
      <if test="shutdownavgtime != null">
        #{shutdownavgtime,jdbcType=DECIMAL},
      </if>
      <if test="expectlostpower != null">
        #{expectlostpower,jdbcType=DECIMAL},
      </if>
      <if test="handleway != null">
        #{handleway,jdbcType=CHAR},
      </if>
      <if test="tasktype != null">
        #{tasktype,jdbcType=CHAR},
      </if>
      <if test="taskclass != null">
        #{taskclass,jdbcType=CHAR},
      </if>
      <if test="taskstatus != null">
        #{taskstatus,jdbcType=CHAR},
      </if>
      <if test="taskmadetime != null">
        #{taskmadetime,jdbcType=TIMESTAMP},
      </if>
      <if test="lastfaulttime != null">
        #{lastfaulttime,jdbcType=TIMESTAMP},
      </if>
      <if test="stoptime != null">
        #{stoptime,jdbcType=TIMESTAMP},
      </if>
      <if test="taskstarttime != null">
        #{taskstarttime,jdbcType=TIMESTAMP},
      </if>
      <if test="taskreceivetime != null">
        #{taskreceivetime,jdbcType=TIMESTAMP},
      </if>
      <if test="arrivespottime != null">
        #{arrivespottime,jdbcType=TIMESTAMP},
      </if>
      <if test="expectfinishtime != null">
        #{expectfinishtime,jdbcType=TIMESTAMP},
      </if>
      <if test="userid != null">
        #{userid,jdbcType=VARCHAR},
      </if>
      <if test="username != null">
        #{username,jdbcType=VARCHAR},
      </if>
      <if test="recommendtime != null">
        #{recommendtime,jdbcType=TIMESTAMP},
      </if>
      <if test="taskfinishtime != null">
        #{taskfinishtime,jdbcType=TIMESTAMP},
      </if>
      <if test="finishgridconnecttime != null">
        #{finishgridconnecttime,jdbcType=TIMESTAMP},
      </if>
      <if test="factlostpower != null">
        #{factlostpower,jdbcType=DECIMAL},
      </if>
      <if test="taskmadeuserid != null">
        #{taskmadeuserid,jdbcType=VARCHAR},
      </if>
      <if test="taskmadeusername != null">
        #{taskmadeusername,jdbcType=VARCHAR},
      </if>
      <if test="failurecauseid != null">
        #{failurecauseid,jdbcType=VARCHAR},
      </if>
      <if test="warninglevel != null">
        #{warninglevel,jdbcType=CHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.P3TaskExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from P3_TASK
    <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 P3_TASK
    <set>
      <if test="record.id != null">
        ID = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.taskcode != null">
        TASKCODE = #{record.taskcode,jdbcType=VARCHAR},
      </if>
      <if test="record.windpowerstationid != null">
        WINDPOWERSTATIONID = #{record.windpowerstationid,jdbcType=VARCHAR},
      </if>
      <if test="record.windturbineid != null">
        WINDTURBINEID = #{record.windturbineid,jdbcType=VARCHAR},
      </if>
      <if test="record.warningid != null">
        WARNINGID = #{record.warningid,jdbcType=VARCHAR},
      </if>
      <if test="record.partid != null">
        PARTID = #{record.partid,jdbcType=VARCHAR},
      </if>
      <if test="record.frequencycount != null">
        FREQUENCYCOUNT = #{record.frequencycount,jdbcType=DECIMAL},
      </if>
      <if test="record.faultcycle != null">
        FAULTCYCLE = #{record.faultcycle,jdbcType=DECIMAL},
      </if>
      <if test="record.shutdownavgtime != null">
        SHUTDOWNAVGTIME = #{record.shutdownavgtime,jdbcType=DECIMAL},
      </if>
      <if test="record.expectlostpower != null">
        EXPECTLOSTPOWER = #{record.expectlostpower,jdbcType=DECIMAL},
      </if>
      <if test="record.handleway != null">
        HANDLEWAY = #{record.handleway,jdbcType=CHAR},
      </if>
      <if test="record.tasktype != null">
        TASKTYPE = #{record.tasktype,jdbcType=CHAR},
      </if>
      <if test="record.taskclass != null">
        TASKCLASS = #{record.taskclass,jdbcType=CHAR},
      </if>
      <if test="record.taskstatus != null">
        TASKSTATUS = #{record.taskstatus,jdbcType=CHAR},
      </if>
      <if test="record.taskmadetime != null">
        TASKMADETIME = #{record.taskmadetime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.lastfaulttime != null">
        LASTFAULTTIME = #{record.lastfaulttime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.stoptime != null">
        STOPTIME = #{record.stoptime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.taskstarttime != null">
        TASKSTARTTIME = #{record.taskstarttime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.taskreceivetime != null">
        TASKRECEIVETIME = #{record.taskreceivetime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.arrivespottime != null">
        ARRIVESPOTTIME = #{record.arrivespottime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.expectfinishtime != null">
        EXPECTFINISHTIME = #{record.expectfinishtime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.userid != null">
        USERID = #{record.userid,jdbcType=VARCHAR},
      </if>
      <if test="record.username != null">
        USERNAME = #{record.username,jdbcType=VARCHAR},
      </if>
      <if test="record.recommendtime != null">
        RECOMMENDTIME = #{record.recommendtime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.taskfinishtime != null">
        TASKFINISHTIME = #{record.taskfinishtime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.finishgridconnecttime != null">
        FINISHGRIDCONNECTTIME = #{record.finishgridconnecttime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.factlostpower != null">
        FACTLOSTPOWER = #{record.factlostpower,jdbcType=DECIMAL},
      </if>
      <if test="record.taskmadeuserid != null">
        TASKMADEUSERID = #{record.taskmadeuserid,jdbcType=VARCHAR},
      </if>
      <if test="record.taskmadeusername != null">
        TASKMADEUSERNAME = #{record.taskmadeusername,jdbcType=VARCHAR},
      </if>
      <if test="record.failurecauseid != null">
        FAILURECAUSEID = #{record.failurecauseid,jdbcType=VARCHAR},
      </if>
      <if test="record.warninglevel != null">
        WARNINGLEVEL = #{record.warninglevel,jdbcType=CHAR},
      </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 P3_TASK
    set ID = #{record.id,jdbcType=VARCHAR},
      TASKCODE = #{record.taskcode,jdbcType=VARCHAR},
      WINDPOWERSTATIONID = #{record.windpowerstationid,jdbcType=VARCHAR},
      WINDTURBINEID = #{record.windturbineid,jdbcType=VARCHAR},
      WARNINGID = #{record.warningid,jdbcType=VARCHAR},
      PARTID = #{record.partid,jdbcType=VARCHAR},
      FREQUENCYCOUNT = #{record.frequencycount,jdbcType=DECIMAL},
      FAULTCYCLE = #{record.faultcycle,jdbcType=DECIMAL},
      SHUTDOWNAVGTIME = #{record.shutdownavgtime,jdbcType=DECIMAL},
      EXPECTLOSTPOWER = #{record.expectlostpower,jdbcType=DECIMAL},
      HANDLEWAY = #{record.handleway,jdbcType=CHAR},
      TASKTYPE = #{record.tasktype,jdbcType=CHAR},
      TASKCLASS = #{record.taskclass,jdbcType=CHAR},
      TASKSTATUS = #{record.taskstatus,jdbcType=CHAR},
      TASKMADETIME = #{record.taskmadetime,jdbcType=TIMESTAMP},
      LASTFAULTTIME = #{record.lastfaulttime,jdbcType=TIMESTAMP},
      STOPTIME = #{record.stoptime,jdbcType=TIMESTAMP},
      TASKSTARTTIME = #{record.taskstarttime,jdbcType=TIMESTAMP},
      TASKRECEIVETIME = #{record.taskreceivetime,jdbcType=TIMESTAMP},
      ARRIVESPOTTIME = #{record.arrivespottime,jdbcType=TIMESTAMP},
      EXPECTFINISHTIME = #{record.expectfinishtime,jdbcType=TIMESTAMP},
      USERID = #{record.userid,jdbcType=VARCHAR},
      USERNAME = #{record.username,jdbcType=VARCHAR},
      RECOMMENDTIME = #{record.recommendtime,jdbcType=TIMESTAMP},
      TASKFINISHTIME = #{record.taskfinishtime,jdbcType=TIMESTAMP},
      FINISHGRIDCONNECTTIME = #{record.finishgridconnecttime,jdbcType=TIMESTAMP},
      FACTLOSTPOWER = #{record.factlostpower,jdbcType=DECIMAL},
      TASKMADEUSERID = #{record.taskmadeuserid,jdbcType=VARCHAR},
      TASKMADEUSERNAME = #{record.taskmadeusername,jdbcType=VARCHAR},
      FAILURECAUSEID = #{record.failurecauseid,jdbcType=VARCHAR},
      WARNINGLEVEL = #{record.warninglevel,jdbcType=CHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.P3Task">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update P3_TASK
    <set>
      <if test="taskcode != null">
        TASKCODE = #{taskcode,jdbcType=VARCHAR},
      </if>
      <if test="windpowerstationid != null">
        WINDPOWERSTATIONID = #{windpowerstationid,jdbcType=VARCHAR},
      </if>
      <if test="windturbineid != null">
        WINDTURBINEID = #{windturbineid,jdbcType=VARCHAR},
      </if>
      <if test="warningid != null">
        WARNINGID = #{warningid,jdbcType=VARCHAR},
      </if>
      <if test="partid != null">
        PARTID = #{partid,jdbcType=VARCHAR},
      </if>
      <if test="frequencycount != null">
        FREQUENCYCOUNT = #{frequencycount,jdbcType=DECIMAL},
      </if>
      <if test="faultcycle != null">
        FAULTCYCLE = #{faultcycle,jdbcType=DECIMAL},
      </if>
      <if test="shutdownavgtime != null">
        SHUTDOWNAVGTIME = #{shutdownavgtime,jdbcType=DECIMAL},
      </if>
      <if test="expectlostpower != null">
        EXPECTLOSTPOWER = #{expectlostpower,jdbcType=DECIMAL},
      </if>
      <if test="handleway != null">
        HANDLEWAY = #{handleway,jdbcType=CHAR},
      </if>
      <if test="tasktype != null">
        TASKTYPE = #{tasktype,jdbcType=CHAR},
      </if>
      <if test="taskclass != null">
        TASKCLASS = #{taskclass,jdbcType=CHAR},
      </if>
      <if test="taskstatus != null">
        TASKSTATUS = #{taskstatus,jdbcType=CHAR},
      </if>
      <if test="taskmadetime != null">
        TASKMADETIME = #{taskmadetime,jdbcType=TIMESTAMP},
      </if>
      <if test="lastfaulttime != null">
        LASTFAULTTIME = #{lastfaulttime,jdbcType=TIMESTAMP},
      </if>
      <if test="stoptime != null">
        STOPTIME = #{stoptime,jdbcType=TIMESTAMP},
      </if>
      <if test="taskstarttime != null">
        TASKSTARTTIME = #{taskstarttime,jdbcType=TIMESTAMP},
      </if>
      <if test="taskreceivetime != null">
        TASKRECEIVETIME = #{taskreceivetime,jdbcType=TIMESTAMP},
      </if>
      <if test="arrivespottime != null">
        ARRIVESPOTTIME = #{arrivespottime,jdbcType=TIMESTAMP},
      </if>
      <if test="expectfinishtime != null">
        EXPECTFINISHTIME = #{expectfinishtime,jdbcType=TIMESTAMP},
      </if>
      <if test="userid != null">
        USERID = #{userid,jdbcType=VARCHAR},
      </if>
      <if test="username != null">
        USERNAME = #{username,jdbcType=VARCHAR},
      </if>
      <if test="recommendtime != null">
        RECOMMENDTIME = #{recommendtime,jdbcType=TIMESTAMP},
      </if>
      <if test="taskfinishtime != null">
        TASKFINISHTIME = #{taskfinishtime,jdbcType=TIMESTAMP},
      </if>
      <if test="finishgridconnecttime != null">
        FINISHGRIDCONNECTTIME = #{finishgridconnecttime,jdbcType=TIMESTAMP},
      </if>
      <if test="factlostpower != null">
        FACTLOSTPOWER = #{factlostpower,jdbcType=DECIMAL},
      </if>
      <if test="taskmadeuserid != null">
        TASKMADEUSERID = #{taskmadeuserid,jdbcType=VARCHAR},
      </if>
      <if test="taskmadeusername != null">
        TASKMADEUSERNAME = #{taskmadeusername,jdbcType=VARCHAR},
      </if>
      <if test="failurecauseid != null">
        FAILURECAUSEID = #{failurecauseid,jdbcType=VARCHAR},
      </if>
      <if test="warninglevel != null">
        WARNINGLEVEL = #{warninglevel,jdbcType=CHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.P3Task">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update P3_TASK
    set TASKCODE = #{taskcode,jdbcType=VARCHAR},
      WINDPOWERSTATIONID = #{windpowerstationid,jdbcType=VARCHAR},
      WINDTURBINEID = #{windturbineid,jdbcType=VARCHAR},
      WARNINGID = #{warningid,jdbcType=VARCHAR},
      PARTID = #{partid,jdbcType=VARCHAR},
      FREQUENCYCOUNT = #{frequencycount,jdbcType=DECIMAL},
      FAULTCYCLE = #{faultcycle,jdbcType=DECIMAL},
      SHUTDOWNAVGTIME = #{shutdownavgtime,jdbcType=DECIMAL},
      EXPECTLOSTPOWER = #{expectlostpower,jdbcType=DECIMAL},
      HANDLEWAY = #{handleway,jdbcType=CHAR},
      TASKTYPE = #{tasktype,jdbcType=CHAR},
      TASKCLASS = #{taskclass,jdbcType=CHAR},
      TASKSTATUS = #{taskstatus,jdbcType=CHAR},
      TASKMADETIME = #{taskmadetime,jdbcType=TIMESTAMP},
      LASTFAULTTIME = #{lastfaulttime,jdbcType=TIMESTAMP},
      STOPTIME = #{stoptime,jdbcType=TIMESTAMP},
      TASKSTARTTIME = #{taskstarttime,jdbcType=TIMESTAMP},
      TASKRECEIVETIME = #{taskreceivetime,jdbcType=TIMESTAMP},
      ARRIVESPOTTIME = #{arrivespottime,jdbcType=TIMESTAMP},
      EXPECTFINISHTIME = #{expectfinishtime,jdbcType=TIMESTAMP},
      USERID = #{userid,jdbcType=VARCHAR},
      USERNAME = #{username,jdbcType=VARCHAR},
      RECOMMENDTIME = #{recommendtime,jdbcType=TIMESTAMP},
      TASKFINISHTIME = #{taskfinishtime,jdbcType=TIMESTAMP},
      FINISHGRIDCONNECTTIME = #{finishgridconnecttime,jdbcType=TIMESTAMP},
      FACTLOSTPOWER = #{factlostpower,jdbcType=DECIMAL},
      TASKMADEUSERID = #{taskmadeuserid,jdbcType=VARCHAR},
      TASKMADEUSERNAME = #{taskmadeusername,jdbcType=VARCHAR},
      FAILURECAUSEID = #{failurecauseid,jdbcType=VARCHAR},
      WARNINGLEVEL = #{warninglevel,jdbcType=CHAR}
    where ID = #{id,jdbcType=VARCHAR}
  </update>
</mapper>