<?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.Daylygradeassessmentmain2Mapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
    <result column="WPID" jdbcType="VARCHAR" property="wpid" />
    <result column="PROJECTID" jdbcType="VARCHAR" property="projectid" />
    <result column="LINEID" jdbcType="VARCHAR" property="lineid" />
    <result column="RECORDDATE" jdbcType="TIMESTAMP" property="recorddate" />
    <result column="SCORE" jdbcType="DECIMAL" property="score" />
    <result column="PLEVEL" jdbcType="VARCHAR" property="plevel" />
    <result column="STATE" jdbcType="DECIMAL" property="state" />
    <result column="MODSCORE" jdbcType="DECIMAL" property="modscore" />
    <result column="MODLEVEL" jdbcType="VARCHAR" property="modlevel" />
    <result column="TOTALSCORE" jdbcType="DECIMAL" property="totalscore" />
    <result column="TID" jdbcType="VARCHAR" property="tid" />
  </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, WTID, WPID, PROJECTID, LINEID, RECORDDATE, SCORE, PLEVEL, STATE, MODSCORE, MODLEVEL, 
    TOTALSCORE, TID
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2Example" 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 DAYLYGRADEASSESSMENTMAIN2
    <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 DAYLYGRADEASSESSMENTMAIN2
    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 DAYLYGRADEASSESSMENTMAIN2
    where ID = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2Example">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from DAYLYGRADEASSESSMENTMAIN2
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into DAYLYGRADEASSESSMENTMAIN2 (ID, WTID, WPID, 
      PROJECTID, LINEID, RECORDDATE, 
      SCORE, PLEVEL, STATE, 
      MODSCORE, MODLEVEL, TOTALSCORE, 
      TID)
    values (#{id,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, #{wpid,jdbcType=VARCHAR}, 
      #{projectid,jdbcType=VARCHAR}, #{lineid,jdbcType=VARCHAR}, #{recorddate,jdbcType=TIMESTAMP}, 
      #{score,jdbcType=DECIMAL}, #{plevel,jdbcType=VARCHAR}, #{state,jdbcType=DECIMAL}, 
      #{modscore,jdbcType=DECIMAL}, #{modlevel,jdbcType=VARCHAR}, #{totalscore,jdbcType=DECIMAL}, 
      #{tid,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into DAYLYGRADEASSESSMENTMAIN2
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="wtid != null">
        WTID,
      </if>
      <if test="wpid != null">
        WPID,
      </if>
      <if test="projectid != null">
        PROJECTID,
      </if>
      <if test="lineid != null">
        LINEID,
      </if>
      <if test="recorddate != null">
        RECORDDATE,
      </if>
      <if test="score != null">
        SCORE,
      </if>
      <if test="plevel != null">
        PLEVEL,
      </if>
      <if test="state != null">
        STATE,
      </if>
      <if test="modscore != null">
        MODSCORE,
      </if>
      <if test="modlevel != null">
        MODLEVEL,
      </if>
      <if test="totalscore != null">
        TOTALSCORE,
      </if>
      <if test="tid != null">
        TID,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="wtid != null">
        #{wtid,jdbcType=VARCHAR},
      </if>
      <if test="wpid != null">
        #{wpid,jdbcType=VARCHAR},
      </if>
      <if test="projectid != null">
        #{projectid,jdbcType=VARCHAR},
      </if>
      <if test="lineid != null">
        #{lineid,jdbcType=VARCHAR},
      </if>
      <if test="recorddate != null">
        #{recorddate,jdbcType=TIMESTAMP},
      </if>
      <if test="score != null">
        #{score,jdbcType=DECIMAL},
      </if>
      <if test="plevel != null">
        #{plevel,jdbcType=VARCHAR},
      </if>
      <if test="state != null">
        #{state,jdbcType=DECIMAL},
      </if>
      <if test="modscore != null">
        #{modscore,jdbcType=DECIMAL},
      </if>
      <if test="modlevel != null">
        #{modlevel,jdbcType=VARCHAR},
      </if>
      <if test="totalscore != null">
        #{totalscore,jdbcType=DECIMAL},
      </if>
      <if test="tid != null">
        #{tid,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2Example" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from DAYLYGRADEASSESSMENTMAIN2
    <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 DAYLYGRADEASSESSMENTMAIN2
    <set>
      <if test="record.id != null">
        ID = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.wtid != null">
        WTID = #{record.wtid,jdbcType=VARCHAR},
      </if>
      <if test="record.wpid != null">
        WPID = #{record.wpid,jdbcType=VARCHAR},
      </if>
      <if test="record.projectid != null">
        PROJECTID = #{record.projectid,jdbcType=VARCHAR},
      </if>
      <if test="record.lineid != null">
        LINEID = #{record.lineid,jdbcType=VARCHAR},
      </if>
      <if test="record.recorddate != null">
        RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.score != null">
        SCORE = #{record.score,jdbcType=DECIMAL},
      </if>
      <if test="record.plevel != null">
        PLEVEL = #{record.plevel,jdbcType=VARCHAR},
      </if>
      <if test="record.state != null">
        STATE = #{record.state,jdbcType=DECIMAL},
      </if>
      <if test="record.modscore != null">
        MODSCORE = #{record.modscore,jdbcType=DECIMAL},
      </if>
      <if test="record.modlevel != null">
        MODLEVEL = #{record.modlevel,jdbcType=VARCHAR},
      </if>
      <if test="record.totalscore != null">
        TOTALSCORE = #{record.totalscore,jdbcType=DECIMAL},
      </if>
      <if test="record.tid != null">
        TID = #{record.tid,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 DAYLYGRADEASSESSMENTMAIN2
    set ID = #{record.id,jdbcType=VARCHAR},
      WTID = #{record.wtid,jdbcType=VARCHAR},
      WPID = #{record.wpid,jdbcType=VARCHAR},
      PROJECTID = #{record.projectid,jdbcType=VARCHAR},
      LINEID = #{record.lineid,jdbcType=VARCHAR},
      RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
      SCORE = #{record.score,jdbcType=DECIMAL},
      PLEVEL = #{record.plevel,jdbcType=VARCHAR},
      STATE = #{record.state,jdbcType=DECIMAL},
      MODSCORE = #{record.modscore,jdbcType=DECIMAL},
      MODLEVEL = #{record.modlevel,jdbcType=VARCHAR},
      TOTALSCORE = #{record.totalscore,jdbcType=DECIMAL},
      TID = #{record.tid,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update DAYLYGRADEASSESSMENTMAIN2
    <set>
      <if test="wtid != null">
        WTID = #{wtid,jdbcType=VARCHAR},
      </if>
      <if test="wpid != null">
        WPID = #{wpid,jdbcType=VARCHAR},
      </if>
      <if test="projectid != null">
        PROJECTID = #{projectid,jdbcType=VARCHAR},
      </if>
      <if test="lineid != null">
        LINEID = #{lineid,jdbcType=VARCHAR},
      </if>
      <if test="recorddate != null">
        RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
      </if>
      <if test="score != null">
        SCORE = #{score,jdbcType=DECIMAL},
      </if>
      <if test="plevel != null">
        PLEVEL = #{plevel,jdbcType=VARCHAR},
      </if>
      <if test="state != null">
        STATE = #{state,jdbcType=DECIMAL},
      </if>
      <if test="modscore != null">
        MODSCORE = #{modscore,jdbcType=DECIMAL},
      </if>
      <if test="modlevel != null">
        MODLEVEL = #{modlevel,jdbcType=VARCHAR},
      </if>
      <if test="totalscore != null">
        TOTALSCORE = #{totalscore,jdbcType=DECIMAL},
      </if>
      <if test="tid != null">
        TID = #{tid,jdbcType=VARCHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update DAYLYGRADEASSESSMENTMAIN2
    set WTID = #{wtid,jdbcType=VARCHAR},
      WPID = #{wpid,jdbcType=VARCHAR},
      PROJECTID = #{projectid,jdbcType=VARCHAR},
      LINEID = #{lineid,jdbcType=VARCHAR},
      RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
      SCORE = #{score,jdbcType=DECIMAL},
      PLEVEL = #{plevel,jdbcType=VARCHAR},
      STATE = #{state,jdbcType=DECIMAL},
      MODSCORE = #{modscore,jdbcType=DECIMAL},
      MODLEVEL = #{modlevel,jdbcType=VARCHAR},
      TOTALSCORE = #{totalscore,jdbcType=DECIMAL},
      TID = #{tid,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=VARCHAR}
  </update>
</mapper>