<?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.WVippropMapper">
  <resultMap id="BaseResultMap" type="com.fuxi.ws.data.entity.WVipprop">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    <id column="VIPID" jdbcType="VARCHAR" property="vipid" />
    <result column="Height" jdbcType="VARCHAR" property="height" />
    <result column="Weight" jdbcType="VARCHAR" property="weight" />
    <result column="Bust" jdbcType="VARCHAR" property="bust" />
    <result column="Waistline" jdbcType="VARCHAR" property="waistline" />
    <result column="Hips" jdbcType="VARCHAR" property="hips" />
    <result column="Shoulder" jdbcType="VARCHAR" property="shoulder" />
    <result column="UpArmsize" jdbcType="VARCHAR" property="uparmsize" />
    <result column="Legsize" jdbcType="VARCHAR" property="legsize" />
    <result column="BottomBust" jdbcType="VARCHAR" property="bottombust" />
    <result column="FootLen" jdbcType="VARCHAR" property="footlen" />
    <result column="FootWidth" jdbcType="VARCHAR" property="footwidth" />
    <result column="FootCycle" jdbcType="VARCHAR" property="footcycle" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    <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 Mon Oct 12 11:29:54 CST 2015.
    -->
    VIPID, Height, Weight, Bust, Waistline, Hips, Shoulder, UpArmsize, Legsize, BottomBust, 
    FootLen, FootWidth, FootCycle
  </sql>
  <select id="selectByExample" parameterType="com.fuxi.ws.data.entity.WVippropExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    'false' as QUERYID,
    <include refid="Base_Column_List" />
    from W_VipProp
    <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 - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    select 
    <include refid="Base_Column_List" />
    from W_VipProp
    where VIPID = #{vipid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    delete from W_VipProp
    where VIPID = #{vipid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.fuxi.ws.data.entity.WVipprop">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    insert into W_VipProp (VIPID, Height, Weight, 
      Bust, Waistline, Hips, 
      Shoulder, UpArmsize, Legsize, 
      BottomBust, FootLen, FootWidth, 
      FootCycle)
    values (#{vipid,jdbcType=VARCHAR}, #{height,jdbcType=VARCHAR}, #{weight,jdbcType=VARCHAR}, 
      #{bust,jdbcType=VARCHAR}, #{waistline,jdbcType=VARCHAR}, #{hips,jdbcType=VARCHAR}, 
      #{shoulder,jdbcType=VARCHAR}, #{uparmsize,jdbcType=VARCHAR}, #{legsize,jdbcType=VARCHAR}, 
      #{bottombust,jdbcType=VARCHAR}, #{footlen,jdbcType=VARCHAR}, #{footwidth,jdbcType=VARCHAR}, 
      #{footcycle,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.fuxi.ws.data.entity.WVipprop">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    insert into W_VipProp
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="vipid != null">
        VIPID,
      </if>
      <if test="height != null">
        Height,
      </if>
      <if test="weight != null">
        Weight,
      </if>
      <if test="bust != null">
        Bust,
      </if>
      <if test="waistline != null">
        Waistline,
      </if>
      <if test="hips != null">
        Hips,
      </if>
      <if test="shoulder != null">
        Shoulder,
      </if>
      <if test="uparmsize != null">
        UpArmsize,
      </if>
      <if test="legsize != null">
        Legsize,
      </if>
      <if test="bottombust != null">
        BottomBust,
      </if>
      <if test="footlen != null">
        FootLen,
      </if>
      <if test="footwidth != null">
        FootWidth,
      </if>
      <if test="footcycle != null">
        FootCycle,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="vipid != null">
        #{vipid,jdbcType=VARCHAR},
      </if>
      <if test="height != null">
        #{height,jdbcType=VARCHAR},
      </if>
      <if test="weight != null">
        #{weight,jdbcType=VARCHAR},
      </if>
      <if test="bust != null">
        #{bust,jdbcType=VARCHAR},
      </if>
      <if test="waistline != null">
        #{waistline,jdbcType=VARCHAR},
      </if>
      <if test="hips != null">
        #{hips,jdbcType=VARCHAR},
      </if>
      <if test="shoulder != null">
        #{shoulder,jdbcType=VARCHAR},
      </if>
      <if test="uparmsize != null">
        #{uparmsize,jdbcType=VARCHAR},
      </if>
      <if test="legsize != null">
        #{legsize,jdbcType=VARCHAR},
      </if>
      <if test="bottombust != null">
        #{bottombust,jdbcType=VARCHAR},
      </if>
      <if test="footlen != null">
        #{footlen,jdbcType=VARCHAR},
      </if>
      <if test="footwidth != null">
        #{footwidth,jdbcType=VARCHAR},
      </if>
      <if test="footcycle != null">
        #{footcycle,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.fuxi.ws.data.entity.WVippropExample" resultType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    select count(*) from W_VipProp
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByPrimaryKeySelective" parameterType="com.fuxi.ws.data.entity.WVipprop">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    update W_VipProp
    <set>
      <if test="height != null">
        Height = #{height,jdbcType=VARCHAR},
      </if>
      <if test="weight != null">
        Weight = #{weight,jdbcType=VARCHAR},
      </if>
      <if test="bust != null">
        Bust = #{bust,jdbcType=VARCHAR},
      </if>
      <if test="waistline != null">
        Waistline = #{waistline,jdbcType=VARCHAR},
      </if>
      <if test="hips != null">
        Hips = #{hips,jdbcType=VARCHAR},
      </if>
      <if test="shoulder != null">
        Shoulder = #{shoulder,jdbcType=VARCHAR},
      </if>
      <if test="uparmsize != null">
        UpArmsize = #{uparmsize,jdbcType=VARCHAR},
      </if>
      <if test="legsize != null">
        Legsize = #{legsize,jdbcType=VARCHAR},
      </if>
      <if test="bottombust != null">
        BottomBust = #{bottombust,jdbcType=VARCHAR},
      </if>
      <if test="footlen != null">
        FootLen = #{footlen,jdbcType=VARCHAR},
      </if>
      <if test="footwidth != null">
        FootWidth = #{footwidth,jdbcType=VARCHAR},
      </if>
      <if test="footcycle != null">
        FootCycle = #{footcycle,jdbcType=VARCHAR},
      </if>
    </set>
    where VIPID = #{vipid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.fuxi.ws.data.entity.WVipprop">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Oct 12 11:29:54 CST 2015.
    -->
    update W_VipProp
    set Height = #{height,jdbcType=VARCHAR},
      Weight = #{weight,jdbcType=VARCHAR},
      Bust = #{bust,jdbcType=VARCHAR},
      Waistline = #{waistline,jdbcType=VARCHAR},
      Hips = #{hips,jdbcType=VARCHAR},
      Shoulder = #{shoulder,jdbcType=VARCHAR},
      UpArmsize = #{uparmsize,jdbcType=VARCHAR},
      Legsize = #{legsize,jdbcType=VARCHAR},
      BottomBust = #{bottombust,jdbcType=VARCHAR},
      FootLen = #{footlen,jdbcType=VARCHAR},
      FootWidth = #{footwidth,jdbcType=VARCHAR},
      FootCycle = #{footcycle,jdbcType=VARCHAR}
    where VIPID = #{vipid,jdbcType=VARCHAR}
  </update>
</mapper>