<?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.WFootscandtlMapper">
  <resultMap id="BaseResultMap" type="com.fuxi.ws.data.entity.WFootscandtl">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 14 18:09:22 CST 2016.
    -->
    <id column="FootScanID" jdbcType="INTEGER" property="footscanid" />
    <id column="RorL" jdbcType="TINYINT" property="rorl" />
    <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="Toe" jdbcType="DECIMAL" property="toe" />
    <result column="Tarsal" jdbcType="DECIMAL" property="tarsal" />
    <result column="Pocket" jdbcType="DECIMAL" property="pocket" />
    <result column="Archlength" jdbcType="DECIMAL" property="archlength" />
    <result column="Heelwidth" jdbcType="DECIMAL" property="heelwidth" />
    <result column="Insideankle" jdbcType="DECIMAL" property="insideankle" />
    <result column="Outsideankle" jdbcType="DECIMAL" property="outsideankle" />
    <result column="Footmarkimg" jdbcType="VARCHAR" property="footmarkimg" />
    <result column="Type" jdbcType="TINYINT" property="type" />
    <result column="Digit" jdbcType="TINYINT" property="digit" />
  </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 14 18:09:22 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 14 18:09:22 CST 2016.
    -->
    FootScanID, RorL, Length, Width, Height, Girth, Toe, Tarsal, Pocket, Archlength, 
    Heelwidth, Insideankle, Outsideankle, Footmarkimg, Type, Digit
  </sql>
  <select id="selectByExample" parameterType="com.fuxi.ws.data.entity.WFootscandtlExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 14 18:09:22 CST 2016.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    'false' as QUERYID,
    <include refid="Base_Column_List" />
    from W_FootScanDtl
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="com.fuxi.ws.data.entity.WFootscandtlKey" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 14 18:09:22 CST 2016.
    -->
    select 
    <include refid="Base_Column_List" />
    from W_FootScanDtl
    where FootScanID = #{footscanid,jdbcType=INTEGER}
      and RorL = #{rorl,jdbcType=TINYINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="com.fuxi.ws.data.entity.WFootscandtlKey">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 14 18:09:22 CST 2016.
    -->
    delete from W_FootScanDtl
    where FootScanID = #{footscanid,jdbcType=INTEGER}
      and RorL = #{rorl,jdbcType=TINYINT}
  </delete>
  <insert id="insert" parameterType="com.fuxi.ws.data.entity.WFootscandtl">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 14 18:09:22 CST 2016.
    -->
    insert into W_FootScanDtl (FootScanID, RorL, Length, 
      Width, Height, Girth, 
      Toe, Tarsal, Pocket, 
      Archlength, Heelwidth, Insideankle, 
      Outsideankle, Footmarkimg, Type, 
      Digit)
    values (#{footscanid,jdbcType=INTEGER}, #{rorl,jdbcType=TINYINT}, #{length,jdbcType=DECIMAL}, 
      #{width,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, #{girth,jdbcType=DECIMAL}, 
      #{toe,jdbcType=DECIMAL}, #{tarsal,jdbcType=DECIMAL}, #{pocket,jdbcType=DECIMAL}, 
      #{archlength,jdbcType=DECIMAL}, #{heelwidth,jdbcType=DECIMAL}, #{insideankle,jdbcType=DECIMAL}, 
      #{outsideankle,jdbcType=DECIMAL}, #{footmarkimg,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, 
      #{digit,jdbcType=TINYINT})
  </insert>
  <insert id="insertSelective" parameterType="com.fuxi.ws.data.entity.WFootscandtl">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 14 18:09:22 CST 2016.
    -->
    insert into W_FootScanDtl
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="footscanid != null">
        FootScanID,
      </if>
      <if test="rorl != null">
        RorL,
      </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="toe != null">
        Toe,
      </if>
      <if test="tarsal != null">
        Tarsal,
      </if>
      <if test="pocket != null">
        Pocket,
      </if>
      <if test="archlength != null">
        Archlength,
      </if>
      <if test="heelwidth != null">
        Heelwidth,
      </if>
      <if test="insideankle != null">
        Insideankle,
      </if>
      <if test="outsideankle != null">
        Outsideankle,
      </if>
      <if test="footmarkimg != null">
        Footmarkimg,
      </if>
      <if test="type != null">
        Type,
      </if>
      <if test="digit != null">
        Digit,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="footscanid != null">
        #{footscanid,jdbcType=INTEGER},
      </if>
      <if test="rorl != null">
        #{rorl,jdbcType=TINYINT},
      </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="toe != null">
        #{toe,jdbcType=DECIMAL},
      </if>
      <if test="tarsal != null">
        #{tarsal,jdbcType=DECIMAL},
      </if>
      <if test="pocket != null">
        #{pocket,jdbcType=DECIMAL},
      </if>
      <if test="archlength != null">
        #{archlength,jdbcType=DECIMAL},
      </if>
      <if test="heelwidth != null">
        #{heelwidth,jdbcType=DECIMAL},
      </if>
      <if test="insideankle != null">
        #{insideankle,jdbcType=DECIMAL},
      </if>
      <if test="outsideankle != null">
        #{outsideankle,jdbcType=DECIMAL},
      </if>
      <if test="footmarkimg != null">
        #{footmarkimg,jdbcType=VARCHAR},
      </if>
      <if test="type != null">
        #{type,jdbcType=TINYINT},
      </if>
      <if test="digit != null">
        #{digit,jdbcType=TINYINT},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.fuxi.ws.data.entity.WFootscandtlExample" resultType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 14 18:09:22 CST 2016.
    -->
    select count(*) from W_FootScanDtl
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByPrimaryKeySelective" parameterType="com.fuxi.ws.data.entity.WFootscandtl">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 14 18:09:22 CST 2016.
    -->
    update W_FootScanDtl
    <set>
      <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="toe != null">
        Toe = #{toe,jdbcType=DECIMAL},
      </if>
      <if test="tarsal != null">
        Tarsal = #{tarsal,jdbcType=DECIMAL},
      </if>
      <if test="pocket != null">
        Pocket = #{pocket,jdbcType=DECIMAL},
      </if>
      <if test="archlength != null">
        Archlength = #{archlength,jdbcType=DECIMAL},
      </if>
      <if test="heelwidth != null">
        Heelwidth = #{heelwidth,jdbcType=DECIMAL},
      </if>
      <if test="insideankle != null">
        Insideankle = #{insideankle,jdbcType=DECIMAL},
      </if>
      <if test="outsideankle != null">
        Outsideankle = #{outsideankle,jdbcType=DECIMAL},
      </if>
      <if test="footmarkimg != null">
        Footmarkimg = #{footmarkimg,jdbcType=VARCHAR},
      </if>
      <if test="type != null">
        Type = #{type,jdbcType=TINYINT},
      </if>
      <if test="digit != null">
        Digit = #{digit,jdbcType=TINYINT},
      </if>
    </set>
    where FootScanID = #{footscanid,jdbcType=INTEGER}
      and RorL = #{rorl,jdbcType=TINYINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.fuxi.ws.data.entity.WFootscandtl">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Dec 14 18:09:22 CST 2016.
    -->
    update W_FootScanDtl
    set Length = #{length,jdbcType=DECIMAL},
      Width = #{width,jdbcType=DECIMAL},
      Height = #{height,jdbcType=DECIMAL},
      Girth = #{girth,jdbcType=DECIMAL},
      Toe = #{toe,jdbcType=DECIMAL},
      Tarsal = #{tarsal,jdbcType=DECIMAL},
      Pocket = #{pocket,jdbcType=DECIMAL},
      Archlength = #{archlength,jdbcType=DECIMAL},
      Heelwidth = #{heelwidth,jdbcType=DECIMAL},
      Insideankle = #{insideankle,jdbcType=DECIMAL},
      Outsideankle = #{outsideankle,jdbcType=DECIMAL},
      Footmarkimg = #{footmarkimg,jdbcType=VARCHAR},
      Type = #{type,jdbcType=TINYINT},
      Digit = #{digit,jdbcType=TINYINT}
    where FootScanID = #{footscanid,jdbcType=INTEGER}
      and RorL = #{rorl,jdbcType=TINYINT}
  </update>
</mapper>