<?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.Wttragetreportpart3Mapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Wttragetreportpart3">
    <!--
      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="PARTNAME" jdbcType="VARCHAR" property="partname" />
    <result column="RECORDDATE" jdbcType="TIMESTAMP" property="recorddate" />
    <result column="Q3YJKQK" jdbcType="VARCHAR" property="q3yjkqk" />
    <result column="Q2YJKQK" jdbcType="VARCHAR" property="q2yjkqk" />
    <result column="Q1YJKQK" jdbcType="VARCHAR" property="q1yjkqk" />
    <result column="BNJKQK" jdbcType="VARCHAR" property="bnjkqk" />
    <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, PARTNAME, RECORDDATE, Q3YJKQK, Q2YJKQK, Q1YJKQK, BNJKQK, WTID, WTNAME
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Wttragetreportpart3Example" 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 WTTRAGETREPORTPART3
    <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 WTTRAGETREPORTPART3
    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 WTTRAGETREPORTPART3
    where ID = #{id,jdbcType=DECIMAL}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Wttragetreportpart3Example">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from WTTRAGETREPORTPART3
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.Wttragetreportpart3">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into WTTRAGETREPORTPART3 (ID, TID, PARTNAME, 
      RECORDDATE, Q3YJKQK, Q2YJKQK, 
      Q1YJKQK, BNJKQK, WTID, 
      WTNAME)
    values (#{id,jdbcType=DECIMAL}, #{tid,jdbcType=DECIMAL}, #{partname,jdbcType=VARCHAR}, 
      #{recorddate,jdbcType=TIMESTAMP}, #{q3yjkqk,jdbcType=VARCHAR}, #{q2yjkqk,jdbcType=VARCHAR}, 
      #{q1yjkqk,jdbcType=VARCHAR}, #{bnjkqk,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, 
      #{wtname,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Wttragetreportpart3">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into WTTRAGETREPORTPART3
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="tid != null">
        TID,
      </if>
      <if test="partname != null">
        PARTNAME,
      </if>
      <if test="recorddate != null">
        RECORDDATE,
      </if>
      <if test="q3yjkqk != null">
        Q3YJKQK,
      </if>
      <if test="q2yjkqk != null">
        Q2YJKQK,
      </if>
      <if test="q1yjkqk != null">
        Q1YJKQK,
      </if>
      <if test="bnjkqk != null">
        BNJKQK,
      </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="partname != null">
        #{partname,jdbcType=VARCHAR},
      </if>
      <if test="recorddate != null">
        #{recorddate,jdbcType=TIMESTAMP},
      </if>
      <if test="q3yjkqk != null">
        #{q3yjkqk,jdbcType=VARCHAR},
      </if>
      <if test="q2yjkqk != null">
        #{q2yjkqk,jdbcType=VARCHAR},
      </if>
      <if test="q1yjkqk != null">
        #{q1yjkqk,jdbcType=VARCHAR},
      </if>
      <if test="bnjkqk != null">
        #{bnjkqk,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.Wttragetreportpart3Example" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from WTTRAGETREPORTPART3
    <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 WTTRAGETREPORTPART3
    <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.partname != null">
        PARTNAME = #{record.partname,jdbcType=VARCHAR},
      </if>
      <if test="record.recorddate != null">
        RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.q3yjkqk != null">
        Q3YJKQK = #{record.q3yjkqk,jdbcType=VARCHAR},
      </if>
      <if test="record.q2yjkqk != null">
        Q2YJKQK = #{record.q2yjkqk,jdbcType=VARCHAR},
      </if>
      <if test="record.q1yjkqk != null">
        Q1YJKQK = #{record.q1yjkqk,jdbcType=VARCHAR},
      </if>
      <if test="record.bnjkqk != null">
        BNJKQK = #{record.bnjkqk,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 WTTRAGETREPORTPART3
    set ID = #{record.id,jdbcType=DECIMAL},
      TID = #{record.tid,jdbcType=DECIMAL},
      PARTNAME = #{record.partname,jdbcType=VARCHAR},
      RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
      Q3YJKQK = #{record.q3yjkqk,jdbcType=VARCHAR},
      Q2YJKQK = #{record.q2yjkqk,jdbcType=VARCHAR},
      Q1YJKQK = #{record.q1yjkqk,jdbcType=VARCHAR},
      BNJKQK = #{record.bnjkqk,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.Wttragetreportpart3">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WTTRAGETREPORTPART3
    <set>
      <if test="tid != null">
        TID = #{tid,jdbcType=DECIMAL},
      </if>
      <if test="partname != null">
        PARTNAME = #{partname,jdbcType=VARCHAR},
      </if>
      <if test="recorddate != null">
        RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
      </if>
      <if test="q3yjkqk != null">
        Q3YJKQK = #{q3yjkqk,jdbcType=VARCHAR},
      </if>
      <if test="q2yjkqk != null">
        Q2YJKQK = #{q2yjkqk,jdbcType=VARCHAR},
      </if>
      <if test="q1yjkqk != null">
        Q1YJKQK = #{q1yjkqk,jdbcType=VARCHAR},
      </if>
      <if test="bnjkqk != null">
        BNJKQK = #{bnjkqk,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.Wttragetreportpart3">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update WTTRAGETREPORTPART3
    set TID = #{tid,jdbcType=DECIMAL},
      PARTNAME = #{partname,jdbcType=VARCHAR},
      RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
      Q3YJKQK = #{q3yjkqk,jdbcType=VARCHAR},
      Q2YJKQK = #{q2yjkqk,jdbcType=VARCHAR},
      Q1YJKQK = #{q1yjkqk,jdbcType=VARCHAR},
      BNJKQK = #{bnjkqk,jdbcType=VARCHAR},
      WTID = #{wtid,jdbcType=VARCHAR},
      WTNAME = #{wtname,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=DECIMAL}
  </update>
</mapper>