<?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.Statejudgmentrecord2Mapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Statejudgmentrecord2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="DECIMAL" property="id" />
    <result column="WPID" jdbcType="VARCHAR" property="wpid" />
    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
    <result column="STATEJUDGMENT" jdbcType="VARCHAR" property="statejudgment" />
    <result column="RECODEDATE" jdbcType="TIMESTAMP" property="recodedate" />
    <result column="SCORE" jdbcType="DECIMAL" property="score" />
    <result column="FORMULA" jdbcType="VARCHAR" property="formula" />
    <result column="PART1" jdbcType="VARCHAR" property="part1" />
    <result column="PART2" jdbcType="VARCHAR" property="part2" />
    <result column="PART3" jdbcType="VARCHAR" property="part3" />
    <result column="MARK" jdbcType="VARCHAR" property="mark" />
  </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, WPID, WTID, STATEJUDGMENT, RECODEDATE, SCORE, FORMULA, PART1, PART2, PART3, MARK
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord2Example" 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 STATEJUDGMENTRECORD2
    <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 STATEJUDGMENTRECORD2
    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 STATEJUDGMENTRECORD2
    where ID = #{id,jdbcType=DECIMAL}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord2Example">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from STATEJUDGMENTRECORD2
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into STATEJUDGMENTRECORD2 (ID, WPID, WTID, 
      STATEJUDGMENT, RECODEDATE, SCORE, 
      FORMULA, PART1, PART2, 
      PART3, MARK)
    values (#{id,jdbcType=DECIMAL}, #{wpid,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, 
      #{statejudgment,jdbcType=VARCHAR}, #{recodedate,jdbcType=TIMESTAMP}, #{score,jdbcType=DECIMAL}, 
      #{formula,jdbcType=VARCHAR}, #{part1,jdbcType=VARCHAR}, #{part2,jdbcType=VARCHAR}, 
      #{part3,jdbcType=VARCHAR}, #{mark,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into STATEJUDGMENTRECORD2
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="wpid != null">
        WPID,
      </if>
      <if test="wtid != null">
        WTID,
      </if>
      <if test="statejudgment != null">
        STATEJUDGMENT,
      </if>
      <if test="recodedate != null">
        RECODEDATE,
      </if>
      <if test="score != null">
        SCORE,
      </if>
      <if test="formula != null">
        FORMULA,
      </if>
      <if test="part1 != null">
        PART1,
      </if>
      <if test="part2 != null">
        PART2,
      </if>
      <if test="part3 != null">
        PART3,
      </if>
      <if test="mark != null">
        MARK,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=DECIMAL},
      </if>
      <if test="wpid != null">
        #{wpid,jdbcType=VARCHAR},
      </if>
      <if test="wtid != null">
        #{wtid,jdbcType=VARCHAR},
      </if>
      <if test="statejudgment != null">
        #{statejudgment,jdbcType=VARCHAR},
      </if>
      <if test="recodedate != null">
        #{recodedate,jdbcType=TIMESTAMP},
      </if>
      <if test="score != null">
        #{score,jdbcType=DECIMAL},
      </if>
      <if test="formula != null">
        #{formula,jdbcType=VARCHAR},
      </if>
      <if test="part1 != null">
        #{part1,jdbcType=VARCHAR},
      </if>
      <if test="part2 != null">
        #{part2,jdbcType=VARCHAR},
      </if>
      <if test="part3 != null">
        #{part3,jdbcType=VARCHAR},
      </if>
      <if test="mark != null">
        #{mark,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord2Example" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from STATEJUDGMENTRECORD2
    <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 STATEJUDGMENTRECORD2
    <set>
      <if test="record.id != null">
        ID = #{record.id,jdbcType=DECIMAL},
      </if>
      <if test="record.wpid != null">
        WPID = #{record.wpid,jdbcType=VARCHAR},
      </if>
      <if test="record.wtid != null">
        WTID = #{record.wtid,jdbcType=VARCHAR},
      </if>
      <if test="record.statejudgment != null">
        STATEJUDGMENT = #{record.statejudgment,jdbcType=VARCHAR},
      </if>
      <if test="record.recodedate != null">
        RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.score != null">
        SCORE = #{record.score,jdbcType=DECIMAL},
      </if>
      <if test="record.formula != null">
        FORMULA = #{record.formula,jdbcType=VARCHAR},
      </if>
      <if test="record.part1 != null">
        PART1 = #{record.part1,jdbcType=VARCHAR},
      </if>
      <if test="record.part2 != null">
        PART2 = #{record.part2,jdbcType=VARCHAR},
      </if>
      <if test="record.part3 != null">
        PART3 = #{record.part3,jdbcType=VARCHAR},
      </if>
      <if test="record.mark != null">
        MARK = #{record.mark,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 STATEJUDGMENTRECORD2
    set ID = #{record.id,jdbcType=DECIMAL},
      WPID = #{record.wpid,jdbcType=VARCHAR},
      WTID = #{record.wtid,jdbcType=VARCHAR},
      STATEJUDGMENT = #{record.statejudgment,jdbcType=VARCHAR},
      RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
      SCORE = #{record.score,jdbcType=DECIMAL},
      FORMULA = #{record.formula,jdbcType=VARCHAR},
      PART1 = #{record.part1,jdbcType=VARCHAR},
      PART2 = #{record.part2,jdbcType=VARCHAR},
      PART3 = #{record.part3,jdbcType=VARCHAR},
      MARK = #{record.mark,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update STATEJUDGMENTRECORD2
    <set>
      <if test="wpid != null">
        WPID = #{wpid,jdbcType=VARCHAR},
      </if>
      <if test="wtid != null">
        WTID = #{wtid,jdbcType=VARCHAR},
      </if>
      <if test="statejudgment != null">
        STATEJUDGMENT = #{statejudgment,jdbcType=VARCHAR},
      </if>
      <if test="recodedate != null">
        RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
      </if>
      <if test="score != null">
        SCORE = #{score,jdbcType=DECIMAL},
      </if>
      <if test="formula != null">
        FORMULA = #{formula,jdbcType=VARCHAR},
      </if>
      <if test="part1 != null">
        PART1 = #{part1,jdbcType=VARCHAR},
      </if>
      <if test="part2 != null">
        PART2 = #{part2,jdbcType=VARCHAR},
      </if>
      <if test="part3 != null">
        PART3 = #{part3,jdbcType=VARCHAR},
      </if>
      <if test="mark != null">
        MARK = #{mark,jdbcType=VARCHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=DECIMAL}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord2">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update STATEJUDGMENTRECORD2
    set WPID = #{wpid,jdbcType=VARCHAR},
      WTID = #{wtid,jdbcType=VARCHAR},
      STATEJUDGMENT = #{statejudgment,jdbcType=VARCHAR},
      RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
      SCORE = #{score,jdbcType=DECIMAL},
      FORMULA = #{formula,jdbcType=VARCHAR},
      PART1 = #{part1,jdbcType=VARCHAR},
      PART2 = #{part2,jdbcType=VARCHAR},
      PART3 = #{part3,jdbcType=VARCHAR},
      MARK = #{mark,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=DECIMAL}
  </update>
</mapper>