<?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.WtReportSubMapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.WtReportSub">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <result column="TID" jdbcType="VARCHAR" property="tid" />
    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
    <result column="RECODEDATE" jdbcType="DATE" property="recodedate" />
    <result column="FDL" jdbcType="DECIMAL" property="fdl" />
    <result column="SBKLYL" jdbcType="DECIMAL" property="sbklyl" />
    <result column="FNLYL" jdbcType="DECIMAL" property="fnlyl" />
    <result column="GZSS" jdbcType="DECIMAL" property="gzss" />
    <result column="WHSS" jdbcType="DECIMAL" property="whss" />
    <result column="XDSS" jdbcType="DECIMAL" property="xdss" />
    <result column="XNSS" jdbcType="DECIMAL" property="xnss" />
    <result column="SLSS" jdbcType="DECIMAL" property="slss" />
    <result column="QXPCL" jdbcType="DECIMAL" property="qxpcl" />
    <result column="QXPCLJZZ" jdbcType="DECIMAL" property="qxpcljzz" />
    <result column="XNSSL" jdbcType="DECIMAL" property="xnssl" />
    <result column="XNSSLJZZ" jdbcType="DECIMAL" property="xnssljzz" />
    <result column="DJPGJB" jdbcType="VARCHAR" property="djpgjb" />
    <result column="STOPHOURS" jdbcType="DECIMAL" property="stophours" />
    <result column="STOPTIMES" jdbcType="DECIMAL" property="stoptimes" />
  </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, WTID, RECODEDATE, FDL, SBKLYL, FNLYL, GZSS, WHSS, XDSS, XNSS, SLSS, QXPCL, 
    QXPCLJZZ, XNSSL, XNSSLJZZ, DJPGJB, STOPHOURS, STOPTIMES
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WtReportSubExample" 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 wtreportsub
    <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 wtreportsub
    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 wtreportsub
    where ID = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WtReportSubExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from wtreportsub
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.WtReportSub">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into wtreportsub (ID, TID, WTID, 
      RECODEDATE, FDL, SBKLYL, 
      FNLYL, GZSS, WHSS, 
      XDSS, XNSS, SLSS, QXPCL, 
      QXPCLJZZ, XNSSL, XNSSLJZZ, 
      DJPGJB, STOPHOURS, STOPTIMES
      )
    values (#{id,jdbcType=VARCHAR}, #{tid,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, 
      #{recodedate,jdbcType=DATE}, #{fdl,jdbcType=DECIMAL}, #{sbklyl,jdbcType=DECIMAL}, 
      #{fnlyl,jdbcType=DECIMAL}, #{gzss,jdbcType=DECIMAL}, #{whss,jdbcType=DECIMAL}, 
      #{xdss,jdbcType=DECIMAL}, #{xnss,jdbcType=DECIMAL}, #{slss,jdbcType=DECIMAL}, #{qxpcl,jdbcType=DECIMAL}, 
      #{qxpcljzz,jdbcType=DECIMAL}, #{xnssl,jdbcType=DECIMAL}, #{xnssljzz,jdbcType=DECIMAL}, 
      #{djpgjb,jdbcType=VARCHAR}, #{stophours,jdbcType=DECIMAL}, #{stoptimes,jdbcType=DECIMAL}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.WtReportSub">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into wtreportsub
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="tid != null">
        TID,
      </if>
      <if test="wtid != null">
        WTID,
      </if>
      <if test="recodedate != null">
        RECODEDATE,
      </if>
      <if test="fdl != null">
        FDL,
      </if>
      <if test="sbklyl != null">
        SBKLYL,
      </if>
      <if test="fnlyl != null">
        FNLYL,
      </if>
      <if test="gzss != null">
        GZSS,
      </if>
      <if test="whss != null">
        WHSS,
      </if>
      <if test="xdss != null">
        XDSS,
      </if>
      <if test="xnss != null">
        XNSS,
      </if>
      <if test="slss != null">
        SLSS,
      </if>
      <if test="qxpcl != null">
        QXPCL,
      </if>
      <if test="qxpcljzz != null">
        QXPCLJZZ,
      </if>
      <if test="xnssl != null">
        XNSSL,
      </if>
      <if test="xnssljzz != null">
        XNSSLJZZ,
      </if>
      <if test="djpgjb != null">
        DJPGJB,
      </if>
      <if test="stophours != null">
        STOPHOURS,
      </if>
      <if test="stoptimes != null">
        STOPTIMES,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="tid != null">
        #{tid,jdbcType=VARCHAR},
      </if>
      <if test="wtid != null">
        #{wtid,jdbcType=VARCHAR},
      </if>
      <if test="recodedate != null">
        #{recodedate,jdbcType=DATE},
      </if>
      <if test="fdl != null">
        #{fdl,jdbcType=DECIMAL},
      </if>
      <if test="sbklyl != null">
        #{sbklyl,jdbcType=DECIMAL},
      </if>
      <if test="fnlyl != null">
        #{fnlyl,jdbcType=DECIMAL},
      </if>
      <if test="gzss != null">
        #{gzss,jdbcType=DECIMAL},
      </if>
      <if test="whss != null">
        #{whss,jdbcType=DECIMAL},
      </if>
      <if test="xdss != null">
        #{xdss,jdbcType=DECIMAL},
      </if>
      <if test="xnss != null">
        #{xnss,jdbcType=DECIMAL},
      </if>
      <if test="slss != null">
        #{slss,jdbcType=DECIMAL},
      </if>
      <if test="qxpcl != null">
        #{qxpcl,jdbcType=DECIMAL},
      </if>
      <if test="qxpcljzz != null">
        #{qxpcljzz,jdbcType=DECIMAL},
      </if>
      <if test="xnssl != null">
        #{xnssl,jdbcType=DECIMAL},
      </if>
      <if test="xnssljzz != null">
        #{xnssljzz,jdbcType=DECIMAL},
      </if>
      <if test="djpgjb != null">
        #{djpgjb,jdbcType=VARCHAR},
      </if>
      <if test="stophours != null">
        #{stophours,jdbcType=DECIMAL},
      </if>
      <if test="stoptimes != null">
        #{stoptimes,jdbcType=DECIMAL},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.WtReportSubExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from wtreportsub
    <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 wtreportsub
    <set>
      <if test="record.id != null">
        ID = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.tid != null">
        TID = #{record.tid,jdbcType=VARCHAR},
      </if>
      <if test="record.wtid != null">
        WTID = #{record.wtid,jdbcType=VARCHAR},
      </if>
      <if test="record.recodedate != null">
        RECODEDATE = #{record.recodedate,jdbcType=DATE},
      </if>
      <if test="record.fdl != null">
        FDL = #{record.fdl,jdbcType=DECIMAL},
      </if>
      <if test="record.sbklyl != null">
        SBKLYL = #{record.sbklyl,jdbcType=DECIMAL},
      </if>
      <if test="record.fnlyl != null">
        FNLYL = #{record.fnlyl,jdbcType=DECIMAL},
      </if>
      <if test="record.gzss != null">
        GZSS = #{record.gzss,jdbcType=DECIMAL},
      </if>
      <if test="record.whss != null">
        WHSS = #{record.whss,jdbcType=DECIMAL},
      </if>
      <if test="record.xdss != null">
        XDSS = #{record.xdss,jdbcType=DECIMAL},
      </if>
      <if test="record.xnss != null">
        XNSS = #{record.xnss,jdbcType=DECIMAL},
      </if>
      <if test="record.slss != null">
        SLSS = #{record.slss,jdbcType=DECIMAL},
      </if>
      <if test="record.qxpcl != null">
        QXPCL = #{record.qxpcl,jdbcType=DECIMAL},
      </if>
      <if test="record.qxpcljzz != null">
        QXPCLJZZ = #{record.qxpcljzz,jdbcType=DECIMAL},
      </if>
      <if test="record.xnssl != null">
        XNSSL = #{record.xnssl,jdbcType=DECIMAL},
      </if>
      <if test="record.xnssljzz != null">
        XNSSLJZZ = #{record.xnssljzz,jdbcType=DECIMAL},
      </if>
      <if test="record.djpgjb != null">
        DJPGJB = #{record.djpgjb,jdbcType=VARCHAR},
      </if>
      <if test="record.stophours != null">
        STOPHOURS = #{record.stophours,jdbcType=DECIMAL},
      </if>
      <if test="record.stoptimes != null">
        STOPTIMES = #{record.stoptimes,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 wtreportsub
    set ID = #{record.id,jdbcType=VARCHAR},
      TID = #{record.tid,jdbcType=VARCHAR},
      WTID = #{record.wtid,jdbcType=VARCHAR},
      RECODEDATE = #{record.recodedate,jdbcType=DATE},
      FDL = #{record.fdl,jdbcType=DECIMAL},
      SBKLYL = #{record.sbklyl,jdbcType=DECIMAL},
      FNLYL = #{record.fnlyl,jdbcType=DECIMAL},
      GZSS = #{record.gzss,jdbcType=DECIMAL},
      WHSS = #{record.whss,jdbcType=DECIMAL},
      XDSS = #{record.xdss,jdbcType=DECIMAL},
      XNSS = #{record.xnss,jdbcType=DECIMAL},
      SLSS = #{record.slss,jdbcType=DECIMAL},
      QXPCL = #{record.qxpcl,jdbcType=DECIMAL},
      QXPCLJZZ = #{record.qxpcljzz,jdbcType=DECIMAL},
      XNSSL = #{record.xnssl,jdbcType=DECIMAL},
      XNSSLJZZ = #{record.xnssljzz,jdbcType=DECIMAL},
      DJPGJB = #{record.djpgjb,jdbcType=VARCHAR},
      STOPHOURS = #{record.stophours,jdbcType=DECIMAL},
      STOPTIMES = #{record.stoptimes,jdbcType=DECIMAL}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.WtReportSub">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update wtreportsub
    <set>
      <if test="tid != null">
        TID = #{tid,jdbcType=VARCHAR},
      </if>
      <if test="wtid != null">
        WTID = #{wtid,jdbcType=VARCHAR},
      </if>
      <if test="recodedate != null">
        RECODEDATE = #{recodedate,jdbcType=DATE},
      </if>
      <if test="fdl != null">
        FDL = #{fdl,jdbcType=DECIMAL},
      </if>
      <if test="sbklyl != null">
        SBKLYL = #{sbklyl,jdbcType=DECIMAL},
      </if>
      <if test="fnlyl != null">
        FNLYL = #{fnlyl,jdbcType=DECIMAL},
      </if>
      <if test="gzss != null">
        GZSS = #{gzss,jdbcType=DECIMAL},
      </if>
      <if test="whss != null">
        WHSS = #{whss,jdbcType=DECIMAL},
      </if>
      <if test="xdss != null">
        XDSS = #{xdss,jdbcType=DECIMAL},
      </if>
      <if test="xnss != null">
        XNSS = #{xnss,jdbcType=DECIMAL},
      </if>
      <if test="slss != null">
        SLSS = #{slss,jdbcType=DECIMAL},
      </if>
      <if test="qxpcl != null">
        QXPCL = #{qxpcl,jdbcType=DECIMAL},
      </if>
      <if test="qxpcljzz != null">
        QXPCLJZZ = #{qxpcljzz,jdbcType=DECIMAL},
      </if>
      <if test="xnssl != null">
        XNSSL = #{xnssl,jdbcType=DECIMAL},
      </if>
      <if test="xnssljzz != null">
        XNSSLJZZ = #{xnssljzz,jdbcType=DECIMAL},
      </if>
      <if test="djpgjb != null">
        DJPGJB = #{djpgjb,jdbcType=VARCHAR},
      </if>
      <if test="stophours != null">
        STOPHOURS = #{stophours,jdbcType=DECIMAL},
      </if>
      <if test="stoptimes != null">
        STOPTIMES = #{stoptimes,jdbcType=DECIMAL},
      </if>
    </set>
    where ID = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.WtReportSub">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update wtreportsub
    set TID = #{tid,jdbcType=VARCHAR},
      WTID = #{wtid,jdbcType=VARCHAR},
      RECODEDATE = #{recodedate,jdbcType=DATE},
      FDL = #{fdl,jdbcType=DECIMAL},
      SBKLYL = #{sbklyl,jdbcType=DECIMAL},
      FNLYL = #{fnlyl,jdbcType=DECIMAL},
      GZSS = #{gzss,jdbcType=DECIMAL},
      WHSS = #{whss,jdbcType=DECIMAL},
      XDSS = #{xdss,jdbcType=DECIMAL},
      XNSS = #{xnss,jdbcType=DECIMAL},
      SLSS = #{slss,jdbcType=DECIMAL},
      QXPCL = #{qxpcl,jdbcType=DECIMAL},
      QXPCLJZZ = #{qxpcljzz,jdbcType=DECIMAL},
      XNSSL = #{xnssl,jdbcType=DECIMAL},
      XNSSLJZZ = #{xnssljzz,jdbcType=DECIMAL},
      DJPGJB = #{djpgjb,jdbcType=VARCHAR},
      STOPHOURS = #{stophours,jdbcType=DECIMAL},
      STOPTIMES = #{stoptimes,jdbcType=DECIMAL}
    where ID = #{id,jdbcType=VARCHAR}
  </update>
</mapper>