<?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.Wttragetreportkkxfx3Mapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Wttragetreportkkxfx3">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="DECIMAL" property="id" />
    <result column="TID" jdbcType="DECIMAL" property="tid" />
    <result column="NAME" jdbcType="VARCHAR" property="name" />
    <result column="RECORDDATE" jdbcType="TIMESTAMP" property="recorddate" />
    <result column="Q3YSJ" jdbcType="DECIMAL" property="q3ysj" />
    <result column="Q2YSJ" jdbcType="DECIMAL" property="q2ysj" />
    <result column="Q1YSJ" jdbcType="DECIMAL" property="q1ysj" />
    <result column="YTBZ" jdbcType="DECIMAL" property="ytbz" />
    <result column="YTBQS" jdbcType="VARCHAR" property="ytbqs" />
    <result column="YHBZ" jdbcType="DECIMAL" property="yhbz" />
    <result column="YHBQS" jdbcType="VARCHAR" property="yhbqs" />
    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
    <result column="WTNAME" jdbcType="VARCHAR" property="wtname" />
  </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, TID, NAME, RECORDDATE, Q3YSJ, Q2YSJ, Q1YSJ, YTBZ, YTBQS, YHBZ, YHBQS, WTID, WTNAME
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Wttragetreportkkxfx3Example" 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 WTTRAGETREPORTKKXFX3
    <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 WTTRAGETREPORTKKXFX3
    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 WTTRAGETREPORTKKXFX3
    where ID = #{id,jdbcType=DECIMAL}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Wttragetreportkkxfx3Example">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from WTTRAGETREPORTKKXFX3
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.Wttragetreportkkxfx3">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into WTTRAGETREPORTKKXFX3 (ID, TID, NAME, 
      RECORDDATE, Q3YSJ, Q2YSJ, 
      Q1YSJ, YTBZ, YTBQS, 
      YHBZ, YHBQS, WTID, 
      WTNAME)
    values (#{id,jdbcType=DECIMAL}, #{tid,jdbcType=DECIMAL}, #{name,jdbcType=VARCHAR}, 
      #{recorddate,jdbcType=TIMESTAMP}, #{q3ysj,jdbcType=DECIMAL}, #{q2ysj,jdbcType=DECIMAL}, 
      #{q1ysj,jdbcType=DECIMAL}, #{ytbz,jdbcType=DECIMAL}, #{ytbqs,jdbcType=VARCHAR}, 
      #{yhbz,jdbcType=DECIMAL}, #{yhbqs,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, 
      #{wtname,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Wttragetreportkkxfx3">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into WTTRAGETREPORTKKXFX3
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="tid != null">
        TID,
      </if>
      <if test="name != null">
        NAME,
      </if>
      <if test="recorddate != null">
        RECORDDATE,
      </if>
      <if test="q3ysj != null">
        Q3YSJ,
      </if>
      <if test="q2ysj != null">
        Q2YSJ,
      </if>
      <if test="q1ysj != null">
        Q1YSJ,
      </if>
      <if test="ytbz != null">
        YTBZ,
      </if>
      <if test="ytbqs != null">
        YTBQS,
      </if>
      <if test="yhbz != null">
        YHBZ,
      </if>
      <if test="yhbqs != null">
        YHBQS,
      </if>
      <if test="wtid != null">
        WTID,
      </if>
      <if test="wtname != null">
        WTNAME,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=DECIMAL},
      </if>
      <if test="tid != null">
        #{tid,jdbcType=DECIMAL},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="recorddate != null">
        #{recorddate,jdbcType=TIMESTAMP},
      </if>
      <if test="q3ysj != null">
        #{q3ysj,jdbcType=DECIMAL},
      </if>
      <if test="q2ysj != null">
        #{q2ysj,jdbcType=DECIMAL},
      </if>
      <if test="q1ysj != null">
        #{q1ysj,jdbcType=DECIMAL},
      </if>
      <if test="ytbz != null">
        #{ytbz,jdbcType=DECIMAL},
      </if>
      <if test="ytbqs != null">
        #{ytbqs,jdbcType=VARCHAR},
      </if>
      <if test="yhbz != null">
        #{yhbz,jdbcType=DECIMAL},
      </if>
      <if test="yhbqs != null">
        #{yhbqs,jdbcType=VARCHAR},
      </if>
      <if test="wtid != null">
        #{wtid,jdbcType=VARCHAR},
      </if>
      <if test="wtname != null">
        #{wtname,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.Wttragetreportkkxfx3Example" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from WTTRAGETREPORTKKXFX3
    <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 WTTRAGETREPORTKKXFX3
    <set>
      <if test="record.id != null">
        ID = #{record.id,jdbcType=DECIMAL},
      </if>
      <if test="record.tid != null">
        TID = #{record.tid,jdbcType=DECIMAL},
      </if>
      <if test="record.name != null">
        NAME = #{record.name,jdbcType=VARCHAR},
      </if>
      <if test="record.recorddate != null">
        RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.q3ysj != null">
        Q3YSJ = #{record.q3ysj,jdbcType=DECIMAL},
      </if>
      <if test="record.q2ysj != null">
        Q2YSJ = #{record.q2ysj,jdbcType=DECIMAL},
      </if>
      <if test="record.q1ysj != null">
        Q1YSJ = #{record.q1ysj,jdbcType=DECIMAL},
      </if>
      <if test="record.ytbz != null">
        YTBZ = #{record.ytbz,jdbcType=DECIMAL},
      </if>
      <if test="record.ytbqs != null">
        YTBQS = #{record.ytbqs,jdbcType=VARCHAR},
      </if>
      <if test="record.yhbz != null">
        YHBZ = #{record.yhbz,jdbcType=DECIMAL},
      </if>
      <if test="record.yhbqs != null">
        YHBQS = #{record.yhbqs,jdbcType=VARCHAR},
      </if>
      <if test="record.wtid != null">
        WTID = #{record.wtid,jdbcType=VARCHAR},
      </if>
      <if test="record.wtname != null">
        WTNAME = #{record.wtname,jdbcType=VARCHAR},
      </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 WTTRAGETREPORTKKXFX3
    set ID = #{record.id,jdbcType=DECIMAL},
      TID = #{record.tid,jdbcType=DECIMAL},
      NAME = #{record.name,jdbcType=VARCHAR},
      RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
      Q3YSJ = #{record.q3ysj,jdbcType=DECIMAL},
      Q2YSJ = #{record.q2ysj,jdbcType=DECIMAL},
      Q1YSJ = #{record.q1ysj,jdbcType=DECIMAL},
      YTBZ = #{record.ytbz,jdbcType=DECIMAL},
      YTBQS = #{record.ytbqs,jdbcType=VARCHAR},
      YHBZ = #{record.yhbz,jdbcType=DECIMAL},
      YHBQS = #{record.yhbqs,jdbcType=VARCHAR},
      WTID = #{record.wtid,jdbcType=VARCHAR},
      WTNAME = #{record.wtname,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Wttragetreportkkxfx3">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WTTRAGETREPORTKKXFX3
    <set>
      <if test="tid != null">
        TID = #{tid,jdbcType=DECIMAL},
      </if>
      <if test="name != null">
        NAME = #{name,jdbcType=VARCHAR},
      </if>
      <if test="recorddate != null">
        RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
      </if>
      <if test="q3ysj != null">
        Q3YSJ = #{q3ysj,jdbcType=DECIMAL},
      </if>
      <if test="q2ysj != null">
        Q2YSJ = #{q2ysj,jdbcType=DECIMAL},
      </if>
      <if test="q1ysj != null">
        Q1YSJ = #{q1ysj,jdbcType=DECIMAL},
      </if>
      <if test="ytbz != null">
        YTBZ = #{ytbz,jdbcType=DECIMAL},
      </if>
      <if test="ytbqs != null">
        YTBQS = #{ytbqs,jdbcType=VARCHAR},
      </if>
      <if test="yhbz != null">
        YHBZ = #{yhbz,jdbcType=DECIMAL},
      </if>
      <if test="yhbqs != null">
        YHBQS = #{yhbqs,jdbcType=VARCHAR},
      </if>
      <if test="wtid != null">
        WTID = #{wtid,jdbcType=VARCHAR},
      </if>
      <if test="wtname != null">
        WTNAME = #{wtname,jdbcType=VARCHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=DECIMAL}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Wttragetreportkkxfx3">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WTTRAGETREPORTKKXFX3
    set TID = #{tid,jdbcType=DECIMAL},
      NAME = #{name,jdbcType=VARCHAR},
      RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
      Q3YSJ = #{q3ysj,jdbcType=DECIMAL},
      Q2YSJ = #{q2ysj,jdbcType=DECIMAL},
      Q1YSJ = #{q1ysj,jdbcType=DECIMAL},
      YTBZ = #{ytbz,jdbcType=DECIMAL},
      YTBQS = #{ytbqs,jdbcType=VARCHAR},
      YHBZ = #{yhbz,jdbcType=DECIMAL},
      YHBQS = #{yhbqs,jdbcType=VARCHAR},
      WTID = #{wtid,jdbcType=VARCHAR},
      WTNAME = #{wtname,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=DECIMAL}
  </update>
</mapper>