<?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.fuxi.ws.data.dao.WFootsizeMapper">
  <resultMap id="BaseResultMap" type="com.fuxi.ws.data.entity.WFootsize">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    <id column="FootSizeID" jdbcType="INTEGER" property="footsizeid" />
    <result column="FootScanID" jdbcType="INTEGER" property="footscanid" />
    <result column="Standard" jdbcType="VARCHAR" property="standard" />
    <result column="Size" jdbcType="VARCHAR" property="size" />
    <result column="Number" jdbcType="VARCHAR" property="number" />
    <result column="ShoeTreeCode" jdbcType="VARCHAR" property="shoetreecode" />
    <result column="Length" jdbcType="DECIMAL" property="length" />
    <result column="Width" jdbcType="DECIMAL" property="width" />
    <result column="Height" jdbcType="DECIMAL" property="height" />
    <result column="Girth" jdbcType="DECIMAL" property="girth" />
    <result column="ArchLength" jdbcType="DECIMAL" property="archlength" />
    <result column="Total" jdbcType="TINYINT" property="total" />
    <result column="Star" jdbcType="NCHAR" property="star" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    <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="Base_Column_List">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    FootSizeID, FootScanID, Standard, Size, Number, ShoeTreeCode, Length, Width, Height, 
    Girth, ArchLength, Total, Star
  </sql>
  <select id="selectByExample" parameterType="com.fuxi.ws.data.entity.WFootsizeExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    'false' as QUERYID,
    <include refid="Base_Column_List" />
    from W_FootSize
    <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.Integer" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    select 
    <include refid="Base_Column_List" />
    from W_FootSize
    where FootSizeID = #{footsizeid,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    delete from W_FootSize
    where FootSizeID = #{footsizeid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.fuxi.ws.data.entity.WFootsize">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    insert into W_FootSize (FootSizeID, FootScanID, Standard, 
      Size, Number, ShoeTreeCode, 
      Length, Width, Height, 
      Girth, ArchLength, Total, 
      Star)
    values (#{footsizeid,jdbcType=INTEGER}, #{footscanid,jdbcType=INTEGER}, #{standard,jdbcType=VARCHAR}, 
      #{size,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR}, #{shoetreecode,jdbcType=VARCHAR}, 
      #{length,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, 
      #{girth,jdbcType=DECIMAL}, #{archlength,jdbcType=DECIMAL}, #{total,jdbcType=TINYINT}, 
      #{star,jdbcType=NCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.fuxi.ws.data.entity.WFootsize">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    insert into W_FootSize
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="footsizeid != null">
        FootSizeID,
      </if>
      <if test="footscanid != null">
        FootScanID,
      </if>
      <if test="standard != null">
        Standard,
      </if>
      <if test="size != null">
        Size,
      </if>
      <if test="number != null">
        Number,
      </if>
      <if test="shoetreecode != null">
        ShoeTreeCode,
      </if>
      <if test="length != null">
        Length,
      </if>
      <if test="width != null">
        Width,
      </if>
      <if test="height != null">
        Height,
      </if>
      <if test="girth != null">
        Girth,
      </if>
      <if test="archlength != null">
        ArchLength,
      </if>
      <if test="total != null">
        Total,
      </if>
      <if test="star != null">
        Star,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="footsizeid != null">
        #{footsizeid,jdbcType=INTEGER},
      </if>
      <if test="footscanid != null">
        #{footscanid,jdbcType=INTEGER},
      </if>
      <if test="standard != null">
        #{standard,jdbcType=VARCHAR},
      </if>
      <if test="size != null">
        #{size,jdbcType=VARCHAR},
      </if>
      <if test="number != null">
        #{number,jdbcType=VARCHAR},
      </if>
      <if test="shoetreecode != null">
        #{shoetreecode,jdbcType=VARCHAR},
      </if>
      <if test="length != null">
        #{length,jdbcType=DECIMAL},
      </if>
      <if test="width != null">
        #{width,jdbcType=DECIMAL},
      </if>
      <if test="height != null">
        #{height,jdbcType=DECIMAL},
      </if>
      <if test="girth != null">
        #{girth,jdbcType=DECIMAL},
      </if>
      <if test="archlength != null">
        #{archlength,jdbcType=DECIMAL},
      </if>
      <if test="total != null">
        #{total,jdbcType=TINYINT},
      </if>
      <if test="star != null">
        #{star,jdbcType=NCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.fuxi.ws.data.entity.WFootsizeExample" resultType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    select count(*) from W_FootSize
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByPrimaryKeySelective" parameterType="com.fuxi.ws.data.entity.WFootsize">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    update W_FootSize
    <set>
      <if test="footscanid != null">
        FootScanID = #{footscanid,jdbcType=INTEGER},
      </if>
      <if test="standard != null">
        Standard = #{standard,jdbcType=VARCHAR},
      </if>
      <if test="size != null">
        Size = #{size,jdbcType=VARCHAR},
      </if>
      <if test="number != null">
        Number = #{number,jdbcType=VARCHAR},
      </if>
      <if test="shoetreecode != null">
        ShoeTreeCode = #{shoetreecode,jdbcType=VARCHAR},
      </if>
      <if test="length != null">
        Length = #{length,jdbcType=DECIMAL},
      </if>
      <if test="width != null">
        Width = #{width,jdbcType=DECIMAL},
      </if>
      <if test="height != null">
        Height = #{height,jdbcType=DECIMAL},
      </if>
      <if test="girth != null">
        Girth = #{girth,jdbcType=DECIMAL},
      </if>
      <if test="archlength != null">
        ArchLength = #{archlength,jdbcType=DECIMAL},
      </if>
      <if test="total != null">
        Total = #{total,jdbcType=TINYINT},
      </if>
      <if test="star != null">
        Star = #{star,jdbcType=NCHAR},
      </if>
    </set>
    where FootSizeID = #{footsizeid,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.fuxi.ws.data.entity.WFootsize">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 21 15:15:41 CST 2016.
    -->
    update W_FootSize
    set FootScanID = #{footscanid,jdbcType=INTEGER},
      Standard = #{standard,jdbcType=VARCHAR},
      Size = #{size,jdbcType=VARCHAR},
      Number = #{number,jdbcType=VARCHAR},
      ShoeTreeCode = #{shoetreecode,jdbcType=VARCHAR},
      Length = #{length,jdbcType=DECIMAL},
      Width = #{width,jdbcType=DECIMAL},
      Height = #{height,jdbcType=DECIMAL},
      Girth = #{girth,jdbcType=DECIMAL},
      ArchLength = #{archlength,jdbcType=DECIMAL},
      Total = #{total,jdbcType=TINYINT},
      Star = #{star,jdbcType=NCHAR}
    where FootSizeID = #{footsizeid,jdbcType=INTEGER}
  </update>
</mapper>