<?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.WGoodsMapper">
  <resultMap id="BaseResultMap" type="com.fuxi.ws.data.entity.WGoods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    <id column="GoodsID" jdbcType="VARCHAR" property="goodsid" />
    <result column="GoodsTypeID" jdbcType="VARCHAR" property="goodstypeid" />
    <result column="GoodsSubTypeID" jdbcType="VARCHAR" property="goodssubtypeid" />
    <result column="GoodName" jdbcType="NVARCHAR" property="goodname" />
    <result column="InitialPrice" jdbcType="DECIMAL" property="initialprice" />
    <result column="Price" jdbcType="DECIMAL" property="price" />
    <result column="Postage" jdbcType="DECIMAL" property="postage" />
    <result column="ImgPath" jdbcType="NVARCHAR" property="imgpath" />
    <result column="GainType" jdbcType="TINYINT" property="gaintype" />
    <result column="ShopGain" jdbcType="DECIMAL" property="shopgain" />
    <result column="DepGain" jdbcType="DECIMAL" property="depgain" />
    <result column="GuideGain" jdbcType="DECIMAL" property="guidegain" />
    <result column="DistribGain" jdbcType="DECIMAL" property="distribgain" />
    <result column="LeadGain" jdbcType="DECIMAL" property="leadgain" />
    <result column="SenderGain" jdbcType="DECIMAL" property="sendergain" />
    <result column="RecommendGain" jdbcType="DECIMAL" property="recommendgain" />
    <result column="DistribShopGain" jdbcType="DECIMAL" property="distribshopgain" />
    <result column="Created" jdbcType="TIMESTAMP" property="created" />
    <result column="Creater" jdbcType="VARCHAR" property="creater" />
    <result column="Modified" jdbcType="TIMESTAMP" property="modified" />
    <result column="Modifier" jdbcType="VARCHAR" property="modifier" />
    <result column="AtList" jdbcType="TINYINT" property="atlist" />
    <result column="ListTime" jdbcType="TIMESTAMP" property="listtime" />
    <result column="ViewColor" jdbcType="TINYINT" property="viewcolor" />
    <result column="ViewSize" jdbcType="TINYINT" property="viewsize" />
    <result column="BelGuideGain" jdbcType="DECIMAL" property="belguidegain" />
    <result column="PayByPoint" jdbcType="TINYINT" property="paybypoint" />
    <result column="TakeSelf" jdbcType="TINYINT" property="takeself" />
    <result column="PriceDec" jdbcType="NVARCHAR" property="pricedec" />
    <result column="Share" jdbcType="INTEGER" property="share" />
    <result column="PromotionsID" jdbcType="INTEGER" property="promotionsid" />
    <result column="ShipmentType" jdbcType="TINYINT" property="shipmenttype" />
    <result column="SortIndex" jdbcType="INTEGER" property="sortindex" />
    <result column="NoUseTicket" jdbcType="TINYINT" property="nouseticket" />
    <result column="MicroForm" jdbcType="INTEGER" property="microform" />
    <result column="Materials" jdbcType="NVARCHAR" property="materials" />
    <result column="NoDiscount" jdbcType="TINYINT" property="nodiscount" />
    <result column="Integral" jdbcType="INTEGER" property="integral" />
    <result column="SelfFlag" jdbcType="TINYINT" property="selfflag" />
    <result column="SupplierID" jdbcType="INTEGER" property="supplierid" />
    <result column="SupPrice" jdbcType="DECIMAL" property="supprice" />
    <result column="OnSell" jdbcType="TINYINT" property="onsell" />
    <result column="DecUrlType" jdbcType="TINYINT" property="decurltype" />
    <result column="DecUrl" jdbcType="VARCHAR" property="decurl" />
    <result column="Code" jdbcType="VARCHAR" property="code" />
    <result column="SPU_ID" jdbcType="INTEGER" property="spuId" />
    <result column="ImgOrVideo" jdbcType="TINYINT" property="imgorvideo" />
    <result column="LabelImgUrl" jdbcType="VARCHAR" property="labelimgurl" />
    <result column="LabelImgFlag" jdbcType="TINYINT" property="labelimgflag" />
    <result column="HasBuyPoint" jdbcType="TINYINT" property="hasbuypoint" />
    <result column="NoUsePoint" jdbcType="TINYINT" property="nousepoint" />
    <result column="ShareFlag" jdbcType="TINYINT" property="shareflag" />
    <result column="ShareTitle" jdbcType="VARCHAR" property="sharetitle" />
    <result column="ShareDec" jdbcType="VARCHAR" property="sharedec" />
    <result column="InputStoreFlag" jdbcType="TINYINT" property="inputstoreflag" />
    <result column="InitialQty" jdbcType="INTEGER" property="initialqty" />
    <result column="InitialShare" jdbcType="INTEGER" property="initialshare" />
    <result column="InitialLaud" jdbcType="INTEGER" property="initiallaud" />
    <result column="ViewConstituent" jdbcType="TINYINT" property="viewconstituent" />
    <result column="AdvanceFlag" jdbcType="TINYINT" property="advanceflag" />
    <result column="AdvanceDays" jdbcType="INTEGER" property="advancedays" />
    <result column="PackageNum" jdbcType="INTEGER" property="packagenum" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    <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 - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    <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 - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    GoodsID, GoodsTypeID, GoodsSubTypeID, GoodName, InitialPrice, Price, Postage, ImgPath, 
    GainType, ShopGain, DepGain, GuideGain, DistribGain, LeadGain, SenderGain, RecommendGain, 
    DistribShopGain, Created, Creater, Modified, Modifier, AtList, ListTime, ViewColor, 
    ViewSize, BelGuideGain, PayByPoint, TakeSelf, PriceDec, Share, PromotionsID, ShipmentType, 
    SortIndex, NoUseTicket, MicroForm, Materials, NoDiscount, Integral, SelfFlag, SupplierID, 
    SupPrice, OnSell, DecUrlType, DecUrl, Code, SPU_ID, ImgOrVideo, LabelImgUrl, LabelImgFlag, 
    HasBuyPoint, NoUsePoint, ShareFlag, ShareTitle, ShareDec, InputStoreFlag, InitialQty, 
    InitialShare, InitialLaud, ViewConstituent, AdvanceFlag, AdvanceDays, PackageNum
  </sql>
  <select id="selectByExample" parameterType="com.fuxi.ws.data.entity.WGoodsExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    'true' as QUERYID,
    <include refid="Base_Column_List" />
    from W_Goods
    <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 Thu Aug 22 17:44:07 CST 2019.
    -->
    select 
    <include refid="Base_Column_List" />
    from W_Goods
    where GoodsID = #{goodsid,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 Thu Aug 22 17:44:07 CST 2019.
    -->
    delete from W_Goods
    where GoodsID = #{goodsid,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.fuxi.ws.data.entity.WGoodsExample">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    delete from W_Goods
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.fuxi.ws.data.entity.WGoods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    insert into W_Goods (GoodsID, GoodsTypeID, GoodsSubTypeID, 
      GoodName, InitialPrice, Price, 
      Postage, ImgPath, GainType, 
      ShopGain, DepGain, GuideGain, 
      DistribGain, LeadGain, SenderGain, 
      RecommendGain, DistribShopGain, Created, 
      Creater, Modified, Modifier, 
      AtList, ListTime, ViewColor, 
      ViewSize, BelGuideGain, PayByPoint, 
      TakeSelf, PriceDec, Share, 
      PromotionsID, ShipmentType, SortIndex, 
      NoUseTicket, MicroForm, Materials, 
      NoDiscount, Integral, SelfFlag, 
      SupplierID, SupPrice, OnSell, 
      DecUrlType, DecUrl, Code, 
      SPU_ID, ImgOrVideo, LabelImgUrl, 
      LabelImgFlag, HasBuyPoint, NoUsePoint, 
      ShareFlag, ShareTitle, ShareDec, 
      InputStoreFlag, InitialQty, InitialShare, 
      InitialLaud, ViewConstituent, AdvanceFlag, 
      AdvanceDays, PackageNum)
    values (#{goodsid,jdbcType=VARCHAR}, #{goodstypeid,jdbcType=VARCHAR}, #{goodssubtypeid,jdbcType=VARCHAR}, 
      #{goodname,jdbcType=NVARCHAR}, #{initialprice,jdbcType=DECIMAL}, #{price,jdbcType=DECIMAL}, 
      #{postage,jdbcType=DECIMAL}, #{imgpath,jdbcType=NVARCHAR}, #{gaintype,jdbcType=TINYINT}, 
      #{shopgain,jdbcType=DECIMAL}, #{depgain,jdbcType=DECIMAL}, #{guidegain,jdbcType=DECIMAL}, 
      #{distribgain,jdbcType=DECIMAL}, #{leadgain,jdbcType=DECIMAL}, #{sendergain,jdbcType=DECIMAL}, 
      #{recommendgain,jdbcType=DECIMAL}, #{distribshopgain,jdbcType=DECIMAL}, #{created,jdbcType=TIMESTAMP}, 
      #{creater,jdbcType=VARCHAR}, #{modified,jdbcType=TIMESTAMP}, #{modifier,jdbcType=VARCHAR}, 
      #{atlist,jdbcType=TINYINT}, #{listtime,jdbcType=TIMESTAMP}, #{viewcolor,jdbcType=TINYINT}, 
      #{viewsize,jdbcType=TINYINT}, #{belguidegain,jdbcType=DECIMAL}, #{paybypoint,jdbcType=TINYINT}, 
      #{takeself,jdbcType=TINYINT}, #{pricedec,jdbcType=NVARCHAR}, #{share,jdbcType=INTEGER}, 
      #{promotionsid,jdbcType=INTEGER}, #{shipmenttype,jdbcType=TINYINT}, #{sortindex,jdbcType=INTEGER}, 
      #{nouseticket,jdbcType=TINYINT}, #{microform,jdbcType=INTEGER}, #{materials,jdbcType=NVARCHAR}, 
      #{nodiscount,jdbcType=TINYINT}, #{integral,jdbcType=INTEGER}, #{selfflag,jdbcType=TINYINT}, 
      #{supplierid,jdbcType=INTEGER}, #{supprice,jdbcType=DECIMAL}, #{onsell,jdbcType=TINYINT}, 
      #{decurltype,jdbcType=TINYINT}, #{decurl,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, 
      #{spuId,jdbcType=INTEGER}, #{imgorvideo,jdbcType=TINYINT}, #{labelimgurl,jdbcType=VARCHAR}, 
      #{labelimgflag,jdbcType=TINYINT}, #{hasbuypoint,jdbcType=TINYINT}, #{nousepoint,jdbcType=TINYINT}, 
      #{shareflag,jdbcType=TINYINT}, #{sharetitle,jdbcType=VARCHAR}, #{sharedec,jdbcType=VARCHAR}, 
      #{inputstoreflag,jdbcType=TINYINT}, #{initialqty,jdbcType=INTEGER}, #{initialshare,jdbcType=INTEGER}, 
      #{initiallaud,jdbcType=INTEGER}, #{viewconstituent,jdbcType=TINYINT}, #{advanceflag,jdbcType=TINYINT}, 
      #{advancedays,jdbcType=INTEGER}, #{packagenum,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="com.fuxi.ws.data.entity.WGoods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    insert into W_Goods
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="goodsid != null">
        GoodsID,
      </if>
      <if test="goodstypeid != null">
        GoodsTypeID,
      </if>
      <if test="goodssubtypeid != null">
        GoodsSubTypeID,
      </if>
      <if test="goodname != null">
        GoodName,
      </if>
      <if test="initialprice != null">
        InitialPrice,
      </if>
      <if test="price != null">
        Price,
      </if>
      <if test="postage != null">
        Postage,
      </if>
      <if test="imgpath != null">
        ImgPath,
      </if>
      <if test="gaintype != null">
        GainType,
      </if>
      <if test="shopgain != null">
        ShopGain,
      </if>
      <if test="depgain != null">
        DepGain,
      </if>
      <if test="guidegain != null">
        GuideGain,
      </if>
      <if test="distribgain != null">
        DistribGain,
      </if>
      <if test="leadgain != null">
        LeadGain,
      </if>
      <if test="sendergain != null">
        SenderGain,
      </if>
      <if test="recommendgain != null">
        RecommendGain,
      </if>
      <if test="distribshopgain != null">
        DistribShopGain,
      </if>
      <if test="created != null">
        Created,
      </if>
      <if test="creater != null">
        Creater,
      </if>
      <if test="modified != null">
        Modified,
      </if>
      <if test="modifier != null">
        Modifier,
      </if>
      <if test="atlist != null">
        AtList,
      </if>
      <if test="listtime != null">
        ListTime,
      </if>
      <if test="viewcolor != null">
        ViewColor,
      </if>
      <if test="viewsize != null">
        ViewSize,
      </if>
      <if test="belguidegain != null">
        BelGuideGain,
      </if>
      <if test="paybypoint != null">
        PayByPoint,
      </if>
      <if test="takeself != null">
        TakeSelf,
      </if>
      <if test="pricedec != null">
        PriceDec,
      </if>
      <if test="share != null">
        Share,
      </if>
      <if test="promotionsid != null">
        PromotionsID,
      </if>
      <if test="shipmenttype != null">
        ShipmentType,
      </if>
      <if test="sortindex != null">
        SortIndex,
      </if>
      <if test="nouseticket != null">
        NoUseTicket,
      </if>
      <if test="microform != null">
        MicroForm,
      </if>
      <if test="materials != null">
        Materials,
      </if>
      <if test="nodiscount != null">
        NoDiscount,
      </if>
      <if test="integral != null">
        Integral,
      </if>
      <if test="selfflag != null">
        SelfFlag,
      </if>
      <if test="supplierid != null">
        SupplierID,
      </if>
      <if test="supprice != null">
        SupPrice,
      </if>
      <if test="onsell != null">
        OnSell,
      </if>
      <if test="decurltype != null">
        DecUrlType,
      </if>
      <if test="decurl != null">
        DecUrl,
      </if>
      <if test="code != null">
        Code,
      </if>
      <if test="spuId != null">
        SPU_ID,
      </if>
      <if test="imgorvideo != null">
        ImgOrVideo,
      </if>
      <if test="labelimgurl != null">
        LabelImgUrl,
      </if>
      <if test="labelimgflag != null">
        LabelImgFlag,
      </if>
      <if test="hasbuypoint != null">
        HasBuyPoint,
      </if>
      <if test="nousepoint != null">
        NoUsePoint,
      </if>
      <if test="shareflag != null">
        ShareFlag,
      </if>
      <if test="sharetitle != null">
        ShareTitle,
      </if>
      <if test="sharedec != null">
        ShareDec,
      </if>
      <if test="inputstoreflag != null">
        InputStoreFlag,
      </if>
      <if test="initialqty != null">
        InitialQty,
      </if>
      <if test="initialshare != null">
        InitialShare,
      </if>
      <if test="initiallaud != null">
        InitialLaud,
      </if>
      <if test="viewconstituent != null">
        ViewConstituent,
      </if>
      <if test="advanceflag != null">
        AdvanceFlag,
      </if>
      <if test="advancedays != null">
        AdvanceDays,
      </if>
      <if test="packagenum != null">
        PackageNum,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="goodsid != null">
        #{goodsid,jdbcType=VARCHAR},
      </if>
      <if test="goodstypeid != null">
        #{goodstypeid,jdbcType=VARCHAR},
      </if>
      <if test="goodssubtypeid != null">
        #{goodssubtypeid,jdbcType=VARCHAR},
      </if>
      <if test="goodname != null">
        #{goodname,jdbcType=NVARCHAR},
      </if>
      <if test="initialprice != null">
        #{initialprice,jdbcType=DECIMAL},
      </if>
      <if test="price != null">
        #{price,jdbcType=DECIMAL},
      </if>
      <if test="postage != null">
        #{postage,jdbcType=DECIMAL},
      </if>
      <if test="imgpath != null">
        #{imgpath,jdbcType=NVARCHAR},
      </if>
      <if test="gaintype != null">
        #{gaintype,jdbcType=TINYINT},
      </if>
      <if test="shopgain != null">
        #{shopgain,jdbcType=DECIMAL},
      </if>
      <if test="depgain != null">
        #{depgain,jdbcType=DECIMAL},
      </if>
      <if test="guidegain != null">
        #{guidegain,jdbcType=DECIMAL},
      </if>
      <if test="distribgain != null">
        #{distribgain,jdbcType=DECIMAL},
      </if>
      <if test="leadgain != null">
        #{leadgain,jdbcType=DECIMAL},
      </if>
      <if test="sendergain != null">
        #{sendergain,jdbcType=DECIMAL},
      </if>
      <if test="recommendgain != null">
        #{recommendgain,jdbcType=DECIMAL},
      </if>
      <if test="distribshopgain != null">
        #{distribshopgain,jdbcType=DECIMAL},
      </if>
      <if test="created != null">
        #{created,jdbcType=TIMESTAMP},
      </if>
      <if test="creater != null">
        #{creater,jdbcType=VARCHAR},
      </if>
      <if test="modified != null">
        #{modified,jdbcType=TIMESTAMP},
      </if>
      <if test="modifier != null">
        #{modifier,jdbcType=VARCHAR},
      </if>
      <if test="atlist != null">
        #{atlist,jdbcType=TINYINT},
      </if>
      <if test="listtime != null">
        #{listtime,jdbcType=TIMESTAMP},
      </if>
      <if test="viewcolor != null">
        #{viewcolor,jdbcType=TINYINT},
      </if>
      <if test="viewsize != null">
        #{viewsize,jdbcType=TINYINT},
      </if>
      <if test="belguidegain != null">
        #{belguidegain,jdbcType=DECIMAL},
      </if>
      <if test="paybypoint != null">
        #{paybypoint,jdbcType=TINYINT},
      </if>
      <if test="takeself != null">
        #{takeself,jdbcType=TINYINT},
      </if>
      <if test="pricedec != null">
        #{pricedec,jdbcType=NVARCHAR},
      </if>
      <if test="share != null">
        #{share,jdbcType=INTEGER},
      </if>
      <if test="promotionsid != null">
        #{promotionsid,jdbcType=INTEGER},
      </if>
      <if test="shipmenttype != null">
        #{shipmenttype,jdbcType=TINYINT},
      </if>
      <if test="sortindex != null">
        #{sortindex,jdbcType=INTEGER},
      </if>
      <if test="nouseticket != null">
        #{nouseticket,jdbcType=TINYINT},
      </if>
      <if test="microform != null">
        #{microform,jdbcType=INTEGER},
      </if>
      <if test="materials != null">
        #{materials,jdbcType=NVARCHAR},
      </if>
      <if test="nodiscount != null">
        #{nodiscount,jdbcType=TINYINT},
      </if>
      <if test="integral != null">
        #{integral,jdbcType=INTEGER},
      </if>
      <if test="selfflag != null">
        #{selfflag,jdbcType=TINYINT},
      </if>
      <if test="supplierid != null">
        #{supplierid,jdbcType=INTEGER},
      </if>
      <if test="supprice != null">
        #{supprice,jdbcType=DECIMAL},
      </if>
      <if test="onsell != null">
        #{onsell,jdbcType=TINYINT},
      </if>
      <if test="decurltype != null">
        #{decurltype,jdbcType=TINYINT},
      </if>
      <if test="decurl != null">
        #{decurl,jdbcType=VARCHAR},
      </if>
      <if test="code != null">
        #{code,jdbcType=VARCHAR},
      </if>
      <if test="spuId != null">
        #{spuId,jdbcType=INTEGER},
      </if>
      <if test="imgorvideo != null">
        #{imgorvideo,jdbcType=TINYINT},
      </if>
      <if test="labelimgurl != null">
        #{labelimgurl,jdbcType=VARCHAR},
      </if>
      <if test="labelimgflag != null">
        #{labelimgflag,jdbcType=TINYINT},
      </if>
      <if test="hasbuypoint != null">
        #{hasbuypoint,jdbcType=TINYINT},
      </if>
      <if test="nousepoint != null">
        #{nousepoint,jdbcType=TINYINT},
      </if>
      <if test="shareflag != null">
        #{shareflag,jdbcType=TINYINT},
      </if>
      <if test="sharetitle != null">
        #{sharetitle,jdbcType=VARCHAR},
      </if>
      <if test="sharedec != null">
        #{sharedec,jdbcType=VARCHAR},
      </if>
      <if test="inputstoreflag != null">
        #{inputstoreflag,jdbcType=TINYINT},
      </if>
      <if test="initialqty != null">
        #{initialqty,jdbcType=INTEGER},
      </if>
      <if test="initialshare != null">
        #{initialshare,jdbcType=INTEGER},
      </if>
      <if test="initiallaud != null">
        #{initiallaud,jdbcType=INTEGER},
      </if>
      <if test="viewconstituent != null">
        #{viewconstituent,jdbcType=TINYINT},
      </if>
      <if test="advanceflag != null">
        #{advanceflag,jdbcType=TINYINT},
      </if>
      <if test="advancedays != null">
        #{advancedays,jdbcType=INTEGER},
      </if>
      <if test="packagenum != null">
        #{packagenum,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.fuxi.ws.data.entity.WGoodsExample" resultType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    select count(*) from W_Goods
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    update W_Goods
    <set>
      <if test="record.goodsid != null">
        GoodsID = #{record.goodsid,jdbcType=VARCHAR},
      </if>
      <if test="record.goodstypeid != null">
        GoodsTypeID = #{record.goodstypeid,jdbcType=VARCHAR},
      </if>
      <if test="record.goodssubtypeid != null">
        GoodsSubTypeID = #{record.goodssubtypeid,jdbcType=VARCHAR},
      </if>
      <if test="record.goodname != null">
        GoodName = #{record.goodname,jdbcType=NVARCHAR},
      </if>
      <if test="record.initialprice != null">
        InitialPrice = #{record.initialprice,jdbcType=DECIMAL},
      </if>
      <if test="record.price != null">
        Price = #{record.price,jdbcType=DECIMAL},
      </if>
      <if test="record.postage != null">
        Postage = #{record.postage,jdbcType=DECIMAL},
      </if>
      <if test="record.imgpath != null">
        ImgPath = #{record.imgpath,jdbcType=NVARCHAR},
      </if>
      <if test="record.gaintype != null">
        GainType = #{record.gaintype,jdbcType=TINYINT},
      </if>
      <if test="record.shopgain != null">
        ShopGain = #{record.shopgain,jdbcType=DECIMAL},
      </if>
      <if test="record.depgain != null">
        DepGain = #{record.depgain,jdbcType=DECIMAL},
      </if>
      <if test="record.guidegain != null">
        GuideGain = #{record.guidegain,jdbcType=DECIMAL},
      </if>
      <if test="record.distribgain != null">
        DistribGain = #{record.distribgain,jdbcType=DECIMAL},
      </if>
      <if test="record.leadgain != null">
        LeadGain = #{record.leadgain,jdbcType=DECIMAL},
      </if>
      <if test="record.sendergain != null">
        SenderGain = #{record.sendergain,jdbcType=DECIMAL},
      </if>
      <if test="record.recommendgain != null">
        RecommendGain = #{record.recommendgain,jdbcType=DECIMAL},
      </if>
      <if test="record.distribshopgain != null">
        DistribShopGain = #{record.distribshopgain,jdbcType=DECIMAL},
      </if>
      <if test="record.created != null">
        Created = #{record.created,jdbcType=TIMESTAMP},
      </if>
      <if test="record.creater != null">
        Creater = #{record.creater,jdbcType=VARCHAR},
      </if>
      <if test="record.modified != null">
        Modified = #{record.modified,jdbcType=TIMESTAMP},
      </if>
      <if test="record.modifier != null">
        Modifier = #{record.modifier,jdbcType=VARCHAR},
      </if>
      <if test="record.atlist != null">
        AtList = #{record.atlist,jdbcType=TINYINT},
      </if>
      <if test="record.listtime != null">
        ListTime = #{record.listtime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.viewcolor != null">
        ViewColor = #{record.viewcolor,jdbcType=TINYINT},
      </if>
      <if test="record.viewsize != null">
        ViewSize = #{record.viewsize,jdbcType=TINYINT},
      </if>
      <if test="record.belguidegain != null">
        BelGuideGain = #{record.belguidegain,jdbcType=DECIMAL},
      </if>
      <if test="record.paybypoint != null">
        PayByPoint = #{record.paybypoint,jdbcType=TINYINT},
      </if>
      <if test="record.takeself != null">
        TakeSelf = #{record.takeself,jdbcType=TINYINT},
      </if>
      <if test="record.pricedec != null">
        PriceDec = #{record.pricedec,jdbcType=NVARCHAR},
      </if>
      <if test="record.share != null">
        Share = #{record.share,jdbcType=INTEGER},
      </if>
      <if test="record.promotionsid != null">
        PromotionsID = #{record.promotionsid,jdbcType=INTEGER},
      </if>
      <if test="record.shipmenttype != null">
        ShipmentType = #{record.shipmenttype,jdbcType=TINYINT},
      </if>
      <if test="record.sortindex != null">
        SortIndex = #{record.sortindex,jdbcType=INTEGER},
      </if>
      <if test="record.nouseticket != null">
        NoUseTicket = #{record.nouseticket,jdbcType=TINYINT},
      </if>
      <if test="record.microform != null">
        MicroForm = #{record.microform,jdbcType=INTEGER},
      </if>
      <if test="record.materials != null">
        Materials = #{record.materials,jdbcType=NVARCHAR},
      </if>
      <if test="record.nodiscount != null">
        NoDiscount = #{record.nodiscount,jdbcType=TINYINT},
      </if>
      <if test="record.integral != null">
        Integral = #{record.integral,jdbcType=INTEGER},
      </if>
      <if test="record.selfflag != null">
        SelfFlag = #{record.selfflag,jdbcType=TINYINT},
      </if>
      <if test="record.supplierid != null">
        SupplierID = #{record.supplierid,jdbcType=INTEGER},
      </if>
      <if test="record.supprice != null">
        SupPrice = #{record.supprice,jdbcType=DECIMAL},
      </if>
      <if test="record.onsell != null">
        OnSell = #{record.onsell,jdbcType=TINYINT},
      </if>
      <if test="record.decurltype != null">
        DecUrlType = #{record.decurltype,jdbcType=TINYINT},
      </if>
      <if test="record.decurl != null">
        DecUrl = #{record.decurl,jdbcType=VARCHAR},
      </if>
      <if test="record.code != null">
        Code = #{record.code,jdbcType=VARCHAR},
      </if>
      <if test="record.spuId != null">
        SPU_ID = #{record.spuId,jdbcType=INTEGER},
      </if>
      <if test="record.imgorvideo != null">
        ImgOrVideo = #{record.imgorvideo,jdbcType=TINYINT},
      </if>
      <if test="record.labelimgurl != null">
        LabelImgUrl = #{record.labelimgurl,jdbcType=VARCHAR},
      </if>
      <if test="record.labelimgflag != null">
        LabelImgFlag = #{record.labelimgflag,jdbcType=TINYINT},
      </if>
      <if test="record.hasbuypoint != null">
        HasBuyPoint = #{record.hasbuypoint,jdbcType=TINYINT},
      </if>
      <if test="record.nousepoint != null">
        NoUsePoint = #{record.nousepoint,jdbcType=TINYINT},
      </if>
      <if test="record.shareflag != null">
        ShareFlag = #{record.shareflag,jdbcType=TINYINT},
      </if>
      <if test="record.sharetitle != null">
        ShareTitle = #{record.sharetitle,jdbcType=VARCHAR},
      </if>
      <if test="record.sharedec != null">
        ShareDec = #{record.sharedec,jdbcType=VARCHAR},
      </if>
      <if test="record.inputstoreflag != null">
        InputStoreFlag = #{record.inputstoreflag,jdbcType=TINYINT},
      </if>
      <if test="record.initialqty != null">
        InitialQty = #{record.initialqty,jdbcType=INTEGER},
      </if>
      <if test="record.initialshare != null">
        InitialShare = #{record.initialshare,jdbcType=INTEGER},
      </if>
      <if test="record.initiallaud != null">
        InitialLaud = #{record.initiallaud,jdbcType=INTEGER},
      </if>
      <if test="record.viewconstituent != null">
        ViewConstituent = #{record.viewconstituent,jdbcType=TINYINT},
      </if>
      <if test="record.advanceflag != null">
        AdvanceFlag = #{record.advanceflag,jdbcType=TINYINT},
      </if>
      <if test="record.advancedays != null">
        AdvanceDays = #{record.advancedays,jdbcType=INTEGER},
      </if>
      <if test="record.packagenum != null">
        PackageNum = #{record.packagenum,jdbcType=INTEGER},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    update W_Goods
    set GoodsID = #{record.goodsid,jdbcType=VARCHAR},
      GoodsTypeID = #{record.goodstypeid,jdbcType=VARCHAR},
      GoodsSubTypeID = #{record.goodssubtypeid,jdbcType=VARCHAR},
      GoodName = #{record.goodname,jdbcType=NVARCHAR},
      InitialPrice = #{record.initialprice,jdbcType=DECIMAL},
      Price = #{record.price,jdbcType=DECIMAL},
      Postage = #{record.postage,jdbcType=DECIMAL},
      ImgPath = #{record.imgpath,jdbcType=NVARCHAR},
      GainType = #{record.gaintype,jdbcType=TINYINT},
      ShopGain = #{record.shopgain,jdbcType=DECIMAL},
      DepGain = #{record.depgain,jdbcType=DECIMAL},
      GuideGain = #{record.guidegain,jdbcType=DECIMAL},
      DistribGain = #{record.distribgain,jdbcType=DECIMAL},
      LeadGain = #{record.leadgain,jdbcType=DECIMAL},
      SenderGain = #{record.sendergain,jdbcType=DECIMAL},
      RecommendGain = #{record.recommendgain,jdbcType=DECIMAL},
      DistribShopGain = #{record.distribshopgain,jdbcType=DECIMAL},
      Created = #{record.created,jdbcType=TIMESTAMP},
      Creater = #{record.creater,jdbcType=VARCHAR},
      Modified = #{record.modified,jdbcType=TIMESTAMP},
      Modifier = #{record.modifier,jdbcType=VARCHAR},
      AtList = #{record.atlist,jdbcType=TINYINT},
      ListTime = #{record.listtime,jdbcType=TIMESTAMP},
      ViewColor = #{record.viewcolor,jdbcType=TINYINT},
      ViewSize = #{record.viewsize,jdbcType=TINYINT},
      BelGuideGain = #{record.belguidegain,jdbcType=DECIMAL},
      PayByPoint = #{record.paybypoint,jdbcType=TINYINT},
      TakeSelf = #{record.takeself,jdbcType=TINYINT},
      PriceDec = #{record.pricedec,jdbcType=NVARCHAR},
      Share = #{record.share,jdbcType=INTEGER},
      PromotionsID = #{record.promotionsid,jdbcType=INTEGER},
      ShipmentType = #{record.shipmenttype,jdbcType=TINYINT},
      SortIndex = #{record.sortindex,jdbcType=INTEGER},
      NoUseTicket = #{record.nouseticket,jdbcType=TINYINT},
      MicroForm = #{record.microform,jdbcType=INTEGER},
      Materials = #{record.materials,jdbcType=NVARCHAR},
      NoDiscount = #{record.nodiscount,jdbcType=TINYINT},
      Integral = #{record.integral,jdbcType=INTEGER},
      SelfFlag = #{record.selfflag,jdbcType=TINYINT},
      SupplierID = #{record.supplierid,jdbcType=INTEGER},
      SupPrice = #{record.supprice,jdbcType=DECIMAL},
      OnSell = #{record.onsell,jdbcType=TINYINT},
      DecUrlType = #{record.decurltype,jdbcType=TINYINT},
      DecUrl = #{record.decurl,jdbcType=VARCHAR},
      Code = #{record.code,jdbcType=VARCHAR},
      SPU_ID = #{record.spuId,jdbcType=INTEGER},
      ImgOrVideo = #{record.imgorvideo,jdbcType=TINYINT},
      LabelImgUrl = #{record.labelimgurl,jdbcType=VARCHAR},
      LabelImgFlag = #{record.labelimgflag,jdbcType=TINYINT},
      HasBuyPoint = #{record.hasbuypoint,jdbcType=TINYINT},
      NoUsePoint = #{record.nousepoint,jdbcType=TINYINT},
      ShareFlag = #{record.shareflag,jdbcType=TINYINT},
      ShareTitle = #{record.sharetitle,jdbcType=VARCHAR},
      ShareDec = #{record.sharedec,jdbcType=VARCHAR},
      InputStoreFlag = #{record.inputstoreflag,jdbcType=TINYINT},
      InitialQty = #{record.initialqty,jdbcType=INTEGER},
      InitialShare = #{record.initialshare,jdbcType=INTEGER},
      InitialLaud = #{record.initiallaud,jdbcType=INTEGER},
      ViewConstituent = #{record.viewconstituent,jdbcType=TINYINT},
      AdvanceFlag = #{record.advanceflag,jdbcType=TINYINT},
      AdvanceDays = #{record.advancedays,jdbcType=INTEGER},
      PackageNum = #{record.packagenum,jdbcType=INTEGER}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.fuxi.ws.data.entity.WGoods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    update W_Goods
    <set>
      <if test="goodstypeid != null">
        GoodsTypeID = #{goodstypeid,jdbcType=VARCHAR},
      </if>
      <if test="goodssubtypeid != null">
        GoodsSubTypeID = #{goodssubtypeid,jdbcType=VARCHAR},
      </if>
      <if test="goodname != null">
        GoodName = #{goodname,jdbcType=NVARCHAR},
      </if>
      <if test="initialprice != null">
        InitialPrice = #{initialprice,jdbcType=DECIMAL},
      </if>
      <if test="price != null">
        Price = #{price,jdbcType=DECIMAL},
      </if>
      <if test="postage != null">
        Postage = #{postage,jdbcType=DECIMAL},
      </if>
      <if test="imgpath != null">
        ImgPath = #{imgpath,jdbcType=NVARCHAR},
      </if>
      <if test="gaintype != null">
        GainType = #{gaintype,jdbcType=TINYINT},
      </if>
      <if test="shopgain != null">
        ShopGain = #{shopgain,jdbcType=DECIMAL},
      </if>
      <if test="depgain != null">
        DepGain = #{depgain,jdbcType=DECIMAL},
      </if>
      <if test="guidegain != null">
        GuideGain = #{guidegain,jdbcType=DECIMAL},
      </if>
      <if test="distribgain != null">
        DistribGain = #{distribgain,jdbcType=DECIMAL},
      </if>
      <if test="leadgain != null">
        LeadGain = #{leadgain,jdbcType=DECIMAL},
      </if>
      <if test="sendergain != null">
        SenderGain = #{sendergain,jdbcType=DECIMAL},
      </if>
      <if test="recommendgain != null">
        RecommendGain = #{recommendgain,jdbcType=DECIMAL},
      </if>
      <if test="distribshopgain != null">
        DistribShopGain = #{distribshopgain,jdbcType=DECIMAL},
      </if>
      <if test="created != null">
        Created = #{created,jdbcType=TIMESTAMP},
      </if>
      <if test="creater != null">
        Creater = #{creater,jdbcType=VARCHAR},
      </if>
      <if test="modified != null">
        Modified = #{modified,jdbcType=TIMESTAMP},
      </if>
      <if test="modifier != null">
        Modifier = #{modifier,jdbcType=VARCHAR},
      </if>
      <if test="atlist != null">
        AtList = #{atlist,jdbcType=TINYINT},
      </if>
      <if test="listtime != null">
        ListTime = #{listtime,jdbcType=TIMESTAMP},
      </if>
      <if test="viewcolor != null">
        ViewColor = #{viewcolor,jdbcType=TINYINT},
      </if>
      <if test="viewsize != null">
        ViewSize = #{viewsize,jdbcType=TINYINT},
      </if>
      <if test="belguidegain != null">
        BelGuideGain = #{belguidegain,jdbcType=DECIMAL},
      </if>
      <if test="paybypoint != null">
        PayByPoint = #{paybypoint,jdbcType=TINYINT},
      </if>
      <if test="takeself != null">
        TakeSelf = #{takeself,jdbcType=TINYINT},
      </if>
      <if test="pricedec != null">
        PriceDec = #{pricedec,jdbcType=NVARCHAR},
      </if>
      <if test="share != null">
        Share = #{share,jdbcType=INTEGER},
      </if>
      <if test="promotionsid != null">
        PromotionsID = #{promotionsid,jdbcType=INTEGER},
      </if>
      <if test="shipmenttype != null">
        ShipmentType = #{shipmenttype,jdbcType=TINYINT},
      </if>
      <if test="sortindex != null">
        SortIndex = #{sortindex,jdbcType=INTEGER},
      </if>
      <if test="nouseticket != null">
        NoUseTicket = #{nouseticket,jdbcType=TINYINT},
      </if>
      <if test="microform != null">
        MicroForm = #{microform,jdbcType=INTEGER},
      </if>
      <if test="materials != null">
        Materials = #{materials,jdbcType=NVARCHAR},
      </if>
      <if test="nodiscount != null">
        NoDiscount = #{nodiscount,jdbcType=TINYINT},
      </if>
      <if test="integral != null">
        Integral = #{integral,jdbcType=INTEGER},
      </if>
      <if test="selfflag != null">
        SelfFlag = #{selfflag,jdbcType=TINYINT},
      </if>
      <if test="supplierid != null">
        SupplierID = #{supplierid,jdbcType=INTEGER},
      </if>
      <if test="supprice != null">
        SupPrice = #{supprice,jdbcType=DECIMAL},
      </if>
      <if test="onsell != null">
        OnSell = #{onsell,jdbcType=TINYINT},
      </if>
      <if test="decurltype != null">
        DecUrlType = #{decurltype,jdbcType=TINYINT},
      </if>
      <if test="decurl != null">
        DecUrl = #{decurl,jdbcType=VARCHAR},
      </if>
      <if test="code != null">
        Code = #{code,jdbcType=VARCHAR},
      </if>
      <if test="spuId != null">
        SPU_ID = #{spuId,jdbcType=INTEGER},
      </if>
      <if test="imgorvideo != null">
        ImgOrVideo = #{imgorvideo,jdbcType=TINYINT},
      </if>
      <if test="labelimgurl != null">
        LabelImgUrl = #{labelimgurl,jdbcType=VARCHAR},
      </if>
      <if test="labelimgflag != null">
        LabelImgFlag = #{labelimgflag,jdbcType=TINYINT},
      </if>
      <if test="hasbuypoint != null">
        HasBuyPoint = #{hasbuypoint,jdbcType=TINYINT},
      </if>
      <if test="nousepoint != null">
        NoUsePoint = #{nousepoint,jdbcType=TINYINT},
      </if>
      <if test="shareflag != null">
        ShareFlag = #{shareflag,jdbcType=TINYINT},
      </if>
      <if test="sharetitle != null">
        ShareTitle = #{sharetitle,jdbcType=VARCHAR},
      </if>
      <if test="sharedec != null">
        ShareDec = #{sharedec,jdbcType=VARCHAR},
      </if>
      <if test="inputstoreflag != null">
        InputStoreFlag = #{inputstoreflag,jdbcType=TINYINT},
      </if>
      <if test="initialqty != null">
        InitialQty = #{initialqty,jdbcType=INTEGER},
      </if>
      <if test="initialshare != null">
        InitialShare = #{initialshare,jdbcType=INTEGER},
      </if>
      <if test="initiallaud != null">
        InitialLaud = #{initiallaud,jdbcType=INTEGER},
      </if>
      <if test="viewconstituent != null">
        ViewConstituent = #{viewconstituent,jdbcType=TINYINT},
      </if>
      <if test="advanceflag != null">
        AdvanceFlag = #{advanceflag,jdbcType=TINYINT},
      </if>
      <if test="advancedays != null">
        AdvanceDays = #{advancedays,jdbcType=INTEGER},
      </if>
      <if test="packagenum != null">
        PackageNum = #{packagenum,jdbcType=INTEGER},
      </if>
    </set>
    where GoodsID = #{goodsid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.fuxi.ws.data.entity.WGoods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    update W_Goods
    set GoodsTypeID = #{goodstypeid,jdbcType=VARCHAR},
      GoodsSubTypeID = #{goodssubtypeid,jdbcType=VARCHAR},
      GoodName = #{goodname,jdbcType=NVARCHAR},
      InitialPrice = #{initialprice,jdbcType=DECIMAL},
      Price = #{price,jdbcType=DECIMAL},
      Postage = #{postage,jdbcType=DECIMAL},
      ImgPath = #{imgpath,jdbcType=NVARCHAR},
      GainType = #{gaintype,jdbcType=TINYINT},
      ShopGain = #{shopgain,jdbcType=DECIMAL},
      DepGain = #{depgain,jdbcType=DECIMAL},
      GuideGain = #{guidegain,jdbcType=DECIMAL},
      DistribGain = #{distribgain,jdbcType=DECIMAL},
      LeadGain = #{leadgain,jdbcType=DECIMAL},
      SenderGain = #{sendergain,jdbcType=DECIMAL},
      RecommendGain = #{recommendgain,jdbcType=DECIMAL},
      DistribShopGain = #{distribshopgain,jdbcType=DECIMAL},
      Created = #{created,jdbcType=TIMESTAMP},
      Creater = #{creater,jdbcType=VARCHAR},
      Modified = #{modified,jdbcType=TIMESTAMP},
      Modifier = #{modifier,jdbcType=VARCHAR},
      AtList = #{atlist,jdbcType=TINYINT},
      ListTime = #{listtime,jdbcType=TIMESTAMP},
      ViewColor = #{viewcolor,jdbcType=TINYINT},
      ViewSize = #{viewsize,jdbcType=TINYINT},
      BelGuideGain = #{belguidegain,jdbcType=DECIMAL},
      PayByPoint = #{paybypoint,jdbcType=TINYINT},
      TakeSelf = #{takeself,jdbcType=TINYINT},
      PriceDec = #{pricedec,jdbcType=NVARCHAR},
      Share = #{share,jdbcType=INTEGER},
      PromotionsID = #{promotionsid,jdbcType=INTEGER},
      ShipmentType = #{shipmenttype,jdbcType=TINYINT},
      SortIndex = #{sortindex,jdbcType=INTEGER},
      NoUseTicket = #{nouseticket,jdbcType=TINYINT},
      MicroForm = #{microform,jdbcType=INTEGER},
      Materials = #{materials,jdbcType=NVARCHAR},
      NoDiscount = #{nodiscount,jdbcType=TINYINT},
      Integral = #{integral,jdbcType=INTEGER},
      SelfFlag = #{selfflag,jdbcType=TINYINT},
      SupplierID = #{supplierid,jdbcType=INTEGER},
      SupPrice = #{supprice,jdbcType=DECIMAL},
      OnSell = #{onsell,jdbcType=TINYINT},
      DecUrlType = #{decurltype,jdbcType=TINYINT},
      DecUrl = #{decurl,jdbcType=VARCHAR},
      Code = #{code,jdbcType=VARCHAR},
      SPU_ID = #{spuId,jdbcType=INTEGER},
      ImgOrVideo = #{imgorvideo,jdbcType=TINYINT},
      LabelImgUrl = #{labelimgurl,jdbcType=VARCHAR},
      LabelImgFlag = #{labelimgflag,jdbcType=TINYINT},
      HasBuyPoint = #{hasbuypoint,jdbcType=TINYINT},
      NoUsePoint = #{nousepoint,jdbcType=TINYINT},
      ShareFlag = #{shareflag,jdbcType=TINYINT},
      ShareTitle = #{sharetitle,jdbcType=VARCHAR},
      ShareDec = #{sharedec,jdbcType=VARCHAR},
      InputStoreFlag = #{inputstoreflag,jdbcType=TINYINT},
      InitialQty = #{initialqty,jdbcType=INTEGER},
      InitialShare = #{initialshare,jdbcType=INTEGER},
      InitialLaud = #{initiallaud,jdbcType=INTEGER},
      ViewConstituent = #{viewconstituent,jdbcType=TINYINT},
      AdvanceFlag = #{advanceflag,jdbcType=TINYINT},
      AdvanceDays = #{advancedays,jdbcType=INTEGER},
      PackageNum = #{packagenum,jdbcType=INTEGER}
    where GoodsID = #{goodsid,jdbcType=VARCHAR}
  </update>  
   <!-- 修改商品性 -->
	<update id="updateByKeySelective" parameterType="com.fuxi.ws.data.entity.WGoods">   
    update W_Goods
    <set>
      <if test="goodstypeid != null">
        GoodsTypeID = #{goodstypeid,jdbcType=VARCHAR},
      </if>      
      GoodsSubTypeID = #{goodssubtypeid,jdbcType=VARCHAR},
      <if test="goodname != null">
        GoodName = #{goodname,jdbcType=NVARCHAR},
      </if>
       <if test="materials != null">
        Materials = #{materials,jdbcType=NVARCHAR},
      </if>
      <if test="initialprice != null">
        InitialPrice = #{initialprice,jdbcType=DECIMAL},
      </if>
      <if test="price != null">
        Price = #{price,jdbcType=DECIMAL},
      </if>
      <if test="postage != null">
        Postage = #{postage,jdbcType=DECIMAL},
      </if>
      <if test="imgpath != null">
        ImgPath = #{imgpath,jdbcType=NVARCHAR},
      </if>
      <if test="gaintype != null">
        GainType = #{gaintype,jdbcType=TINYINT},
      </if>
      <if test="shopgain != null">
        ShopGain = #{shopgain,jdbcType=DECIMAL},
      </if>
      <if test="depgain != null">
        DepGain = #{depgain,jdbcType=DECIMAL},
      </if>
      <if test="guidegain != null">
        GuideGain = #{guidegain,jdbcType=DECIMAL},
      </if>
      <if test="distribgain != null">
        DistribGain = #{distribgain,jdbcType=DECIMAL},
      </if>
      <if test="leadgain != null">
        LeadGain = #{leadgain,jdbcType=DECIMAL},
      </if>
      <if test="sendergain != null">
        SenderGain = #{sendergain,jdbcType=DECIMAL},
      </if>
      <if test="belguidegain != null">
        BelGuideGain = #{belguidegain,jdbcType=DECIMAL},
      </if>
      <if test="recommendgain != null">
        RecommendGain = #{recommendgain,jdbcType=DECIMAL},
      </if>
      <if test="distribshopgain != null">
        DistribShopGain = #{distribshopgain,jdbcType=DECIMAL},
      </if>
      <if test="created != null">
        Created = #{created,jdbcType=TIMESTAMP},
      </if>
      <if test="creater != null">
        Creater = #{creater,jdbcType=VARCHAR},
      </if>
      <if test="modified != null">
        Modified = #{modified,jdbcType=TIMESTAMP},
      </if>
      <if test="modifier != null">
        Modifier = #{modifier,jdbcType=VARCHAR},
      </if>
      <if test="atlist != null">
        AtList = #{atlist,jdbcType=TINYINT},
      </if>      
        ListTime = case when ListTime is null then #{listtime,jdbcType=TIMESTAMP} else ListTime end,
      <if test="viewcolor != null">
        ViewColor = #{viewcolor,jdbcType=TINYINT},
      </if>
      <if test="viewsize != null">
        ViewSize = #{viewsize,jdbcType=TINYINT},
      </if>
      <if test="paybypoint != null">
        PayByPoint = #{paybypoint,jdbcType=TINYINT},
      </if>
      <if test="takeself != null">
        TakeSelf = #{takeself,jdbcType=TINYINT},
      </if>
      <if test="pricedec != null">
        PriceDec = #{pricedec,jdbcType=NVARCHAR},
      </if>
      <if test="share != null">
        Share = #{share,jdbcType=INTEGER},
      </if>     
      <if test="promotionsid != null">
        PromotionsID = #{promotionsid,jdbcType=INTEGER},
      </if>
      <if test="shipmenttype != null">
        ShipmentType = #{shipmenttype,jdbcType=TINYINT},
      </if>
      <if test="sortindex != null">
        SortIndex = #{sortindex,jdbcType=INTEGER},
      </if>
      MicroForm = #{microform,jdbcType=INTEGER},
      <if test="nodiscount != null">
        NoDiscount = #{nodiscount,jdbcType=TINYINT},
      </if>
      <if test="integral != null">
        Integral = #{integral,jdbcType=INTEGER},
      </if>
      <if test="nouseticket != null">
        NoUseTicket = #{nouseticket,jdbcType=TINYINT},
      </if>
      <if test="selfflag != null">
        SelfFlag = #{selfflag,jdbcType=TINYINT},
      </if>
      <if test="supplierid != null">
        SupplierID = #{supplierid,jdbcType=INTEGER},
      </if>
      <if test="supprice != null">
        SupPrice = #{supprice,jdbcType=DECIMAL},
      </if>
      <if test="onsell != null">
        OnSell = #{onsell,jdbcType=TINYINT},
      </if>
      <if test="decurltype != null">
        DecUrlType = #{decurltype,jdbcType=TINYINT},
      </if>
      <if test="decurl != null">
        DecUrl = #{decurl,jdbcType=VARCHAR},
      </if>
      <if test="code != null">
        Code = #{code,jdbcType=VARCHAR},
      </if>
      <if test="imgorvideo != null">
        ImgOrVideo = #{imgorvideo,jdbcType=TINYINT},
      </if>
      <if test="labelimgurl != null">
        LabelImgUrl = #{labelimgurl,jdbcType=VARCHAR},
      </if>
      <if test="labelimgflag != null">
        LabelImgFlag = #{labelimgflag,jdbcType=TINYINT},
      </if>
        <if test="hasbuypoint != null">
        HasBuyPoint = #{hasbuypoint,jdbcType=TINYINT},
      </if>
      <if test="nousepoint != null">
        NoUsePoint = #{nousepoint,jdbcType=TINYINT},
      </if>
      <if test="shareflag != null">
        ShareFlag = #{shareflag,jdbcType=TINYINT},
      </if>
      <if test="sharetitle != null">
        ShareTitle = #{sharetitle,jdbcType=VARCHAR},
      </if>
       <if test="sharedec != null">
        ShareDec = #{sharedec,jdbcType=VARCHAR},
      </if>
      <if test="inputstoreflag != null">
        InputStoreFlag = #{inputstoreflag,jdbcType=VARCHAR},
      </if>
      <if test="initialqty != null">
        InitialQty = #{initialqty,jdbcType=INTEGER},
      </if>
      <if test="initialshare != null">
        InitialShare = #{initialshare,jdbcType=INTEGER},
      </if>
      <if test="initiallaud != null">
        InitialLaud = #{initiallaud,jdbcType=INTEGER},
      </if>
       <if test="spuId != null">
        SPU_ID = #{spuId,jdbcType=INTEGER},
      </if>
    </set>
    where GoodsID = #{goodsid,jdbcType=VARCHAR}
  </update>

	<!-- 根据商品类别ID获取商品列表 -->
	<select id="goodsList" resultType="java.util.LinkedHashMap">
		${paramSQL}
	</select>

	<resultMap extends="BaseResultMap" id="extendResultMap" type="com.fuxi.ws.data.entity.WGoods">
		<result column="GoodsType" jdbcType="VARCHAR" property="goodstype" />
	</resultMap>

	<!-- 以Code读取单个商品信息 -->
	<select id="selectgoods" parameterType="java.lang.String" resultMap="extendResultMap">
		select b.GoodsID,b.Name as GoodName,b.InitialPrice,
		b.RetailSales as Price,b.Code
		from Goods b
		where b.Code = #{code,jdbcType=VARCHAR}
	</select>

	<!-- 以Code读取网店已上架的商品信息 -->
	<select id="selectgoodsByCode" parameterType="java.lang.String" resultMap="extendResultMap">
		select b.GoodsID,b.GoodName,b.Price,b.Code,b.ImgPath,a.SupplierName
		from W_Goods b  left join
		W_Supplier a on a.SupplierID=b.SupplierID
		where b.Code = #{code,jdbcType=VARCHAR} and b.AtList=1
	</select>

	<!-- 以Code读取网店商品信息 -->
	<select id="selectallwgoods" parameterType="java.lang.String" resultMap="extendResultMap">
		select b.GoodsID,b.GoodName,b.Price,b.Code,b.ImgPath,b.SupplierID
		from W_Goods b 
		where b.Code = #{code,jdbcType=VARCHAR}
		<if test="supplierid != null">
        	and b.supplierid = #{supplierid,jdbcType=INTEGER}
      	</if>
	</select>
	
	<!-- 以Code读取网店商品信息List -->
	<select id="selectgoodslistBycode" parameterType="java.lang.String" resultMap="extendResultMap">
		select b.GoodsID,b.GoodName,b.Price,b.Code,b.ImgPath,b.SupplierID,a.SupplierName
		from W_Goods b left join
		W_Supplier a on a.SupplierID=b.SupplierID
		where b.Code = #{code,jdbcType=VARCHAR}
	</select>

	<!-- 以GoodsID读取单个商品信息 -->
	<select id="selectwgoods" parameterType="java.lang.String" resultMap="extendResultMap">
		select a.*,c.GoodsType from W_Goods a left join
		GoodsType c on	c.GoodsTypeID=a.GoodsTypeID
		where a.GoodsID = #{goodsid,jdbcType=VARCHAR}
	</select>

	<!-- 读取商品列表信息 -->
	<select id="wgoodsList" resultType="java.util.LinkedHashMap">
		select * from (SELECT a.GoodsID, a.ImgPath, a.Code, a.GoodName, a.Price,
		ISNULL(SUM(d.Quantity), 0) AS TotalQty,ISNULL(SUM(d.TotalSell), 0) AS
		TotalSell, CONVERT(varchar(10),a.ListTime, 121) + '<![CDATA[<br/>]]>'
		+ CONVERT(varchar(10), a.ListTime, 108) AS ListTime,a.SortIndex,
		CONVERT(varchar(10),a.Created, 121) + '<![CDATA[<br/>]]>'
		+ CONVERT(varchar(10), a.Created, 108) AS Created,
		(select cast(count(*) as varchar)from
		W_GoodsPv p with(nolock) where p.GoodsID=a.GoodsID) GoodsPv,
		(select cast(count(*) as varchar) from
		W_UV u with(nolock) where u.GoodsID=a.GoodsID and u.Type=1) GoodsUv,
		(select cast(count(*) as varchar) from W_GoodsLaud q with(nolock) where q.GoodsID=a.GoodsID) GoodsLd,
		cast(a.Share as varchar) as Share,a.PayByPoint,a.Integral
		FROM W_Goods AS a with(nolock) LEFT OUTER JOIN	W_Store
		AS d with(nolock) ON a.GoodsID = d.GoodsID
		<if test="conditions != null and conditions != ''">
			where
			${conditions}
		</if>
		GROUP BY a.GoodsID, a.ImgPath, a.Code, a.GoodName,
		a.Price, a.ListTime,a.SortIndex, a.Created,a.Share,a.PayByPoint,a.Integral) tb
		<if test="orderby == null or orderby == 0 ">
			order by tb.ListTime desc
		</if>
		<if test="orderby == 11 ">
			order by tb.Price desc
		</if>
		<if test="orderby == 12 ">
			order by tb.Price asc
		</if>
		<if test="orderby == 21 ">
			order by tb.TotalQty desc
		</if>
		<if test="orderby == 22 ">
			order by tb.TotalQty asc
		</if>
		<if test="orderby == 31 ">
			order by tb.TotalSell desc
		</if>
		<if test="orderby == 32 ">
			order by tb.TotalSell asc
		</if>
		<if test="orderby == 41 ">
			order by tb.ListTime desc
		</if>
		<if test="orderby == 42 ">
			order by tb.ListTime asc
		</if>
		<if test="orderby == 51 ">
			order by tb.SortIndex desc
		</if>
		<if test="orderby == 52 ">
			order by tb.SortIndex asc
		</if>
		<if test="orderby == 61 ">
			order by tb.Created desc
		</if>
		<if test="orderby == 62 ">
			order by tb.Created asc
		</if>
	</select>

	<!-- 读取商品导出信息 -->
	<select id="wgoodsOut" resultType="java.util.LinkedHashMap">
		SELECT y.GoodsType,z.Name SupGoodsType,a.Code, a.GoodName,s.SupplierNo,s.SupplierName,
		a.Price,a.InitialPrice,a.Postage,
		Case a.GainType when 0 then '按店铺' else '按商品' end as GainType,
		a.ShopGain,a.DepGain,a.GuideGain,
		a.DistribGain,a.LeadGain,a.SenderGain,a.BelGuideGain,a.RecommendGain,a.DistribShopGain,
		(select cast(count(*) as varchar) from
		W_GoodsPv p with(nolock) where p.GoodsID=a.GoodsID) GoodsPv,
		(select cast(count(*) as varchar) from
		W_UV u with(nolock) where u.GoodsID=a.GoodsID) GoodsUv,
		(select cast(count(*) as varchar) from W_GoodsLaud q with(nolock) where q.GoodsID=a.GoodsID) GoodsLd,
		cast(a.Share as varchar) as Share
		FROM W_Goods AS a with(nolock) left join
		W_Supplier s with(nolock) on s.SupplierID=a.SupplierID  left join
		GoodsType y with(nolock) on y.GoodsTypeID=a.GoodsTypeID left join
		GoodsSubType z with(nolock) on z.GoodsSubTypeID=a.GoodsSubTypeID
		<if test="conditions != null and conditions != ''">
			where
			${conditions}
		</if>
		order by a.Code
	</select>

	<!-- 读取库存导出信息 -->
	<select id="wStoreOut" resultType="java.util.LinkedHashMap">
		SELECT a.Code,e.Color,z.Size,d.Quantity,d.Price,d.TotalSell,s.SupplierNo,s.SupplierName
		FROM W_Goods AS a with(nolock) inner JOIN
		W_Store AS d with(nolock) ON a.GoodsID =	d.GoodsID inner JOIN
		Color e with(nolock) on d.ColorID=e.ColorID inner join
		Size z with(nolock) on	d.SizeID=z.SizeID left join 
		W_Supplier s on s.Supplierid=a.Supplierid 
		<if test="conditions != null and conditions != ''">
			where
			${conditions}
		</if>
		order by a.Code,e.Color,z.Size
	</select>
	
	<!-- 读取库存导出信息——包含Sku -->
	<select id="wStoreSkuOut" resultType="java.util.LinkedHashMap">
		SELECT a.Code,e.Color,z.Size,d.Quantity,d.Price,d.TotalSell,
			isnull(r.BarCode,'') BarCode,s.SupplierNo,s.SupplierName
		FROM W_Goods AS a with(nolock) inner JOIN
		W_Store AS d with(nolock) ON	a.GoodsID =	d.GoodsID left JOIN
		Color e with(nolock) on d.ColorID=e.ColorID inner join
		Size z with(nolock) on d.SizeID=z.SizeID left join
		Barcode r with(nolock) on r.GoodsID=d.GoodsID and r.ColorID=d.ColorID and r.SizeID=d.SizeID left join 
		W_Supplier s with(nolock) on s.Supplierid=a.Supplierid
		<if test="conditions != null and conditions != ''">
			where
			${conditions}
		</if>
		order by a.Code,e.Color,z.Size
	</select>

	<!-- 以商品编号code读取商品id -->
	<select id="selectgoodsid" resultType="java.util.LinkedHashMap">
		select
		w.GoodsID,g.Code,w.AtList
		from W_Goods as w with(nolock)
		where w.Code=#{code}
	</select>

	<select id="getgoods" parameterType="java.util.HashMap" resultType="java.util.LinkedHashMap">
		select a.GoodsID,a.Code,a.GoodName,a.GoodsTypeID,d.GoodsType,a.InitialPrice,a.Price,a.Postage,a.ImgPath,
		a.GainType,a.ShopGain,a.DepGain,a.GuideGain,a.DistribGain,a.LeadGain,a.SenderGain,a.BelGuideGain,a.RecommendGain,
		convert(varchar(19),a.Created,121) Created,a.Creater,convert(varchar(19),a.Modified,121) Modified,
		a.Modifier,a.AtList,convert(varchar(19),a.ListTime,121) ListTime,a.ViewColor,a.ViewSize
		from W_Goods a with(nolock) left join 
		GoodsType d with(nolock) on
		a.GoodsTypeID=d.GoodsTypeID
		where 1=1
		<if test="conditions != null and conditions != ''">
			${conditions}
		</if>
		order by a.GoodsID desc
	</select>
	
	<select id="getgoodsdtl" parameterType="java.util.HashMap" resultType="java.util.LinkedHashMap">
		select a.GoodsID,a.Code,a.GoodName,a.InitialPrice,a.Postage,a.ImgPath,a.AtList
		from W_Goods a with(nolock) 
		where 1=1
		<if test="conditions != null and conditions != ''">
			${conditions}
		</if>
		order by a.GoodsID desc
	</select>

	<update id="refreshPrice">
		update W_Store
		set Price = a.RetailSales
		from Goods a 
		where a.GoodsID=W_Store.GoodsID
		
		update W_Goods
		set InitialPrice = isnull(t.InitialPrice,0),
		Price = isnull(t.RetailSales,0),
		PriceDec = isnull((case when t.Price1=t.Price2 then cast(Round(t.Price1,2) as varchar) else cast(Round(t.Price1,2) as varchar) + '-' + cast(Round(t.Price2,2) as varchar) end),0.00)
		from (select a.GoodsID,b.InitialPrice,b.RetailSales, (select top 1 Price from W_Store with(nolock) where goodsid=a.GoodsID order by Price asc) as Price1,
					(select top 1 Price from W_Store with(nolock) where GoodsID=a.GoodsID  order by Price desc) as Price2
			from W_Goods a inner join
			Goods b on a.GoodsID=b.GoodsID) t 
		where t.GoodsID=W_Goods.GoodsID;
	</update>
	
	<!-- 更新商品的单价描述 -->
	<update id="updatePricedec">
		update W_Goods
		set PriceDec = isnull((case when t.Price1=t.Price2 then cast(Round(t.Price1,2) as varchar) else cast(Round(t.Price1,2) as varchar) + '-' + cast(Round(t.Price2,2) as varchar) end),0.00),
			ViewColor = (case when t.colors&gt;1 then 1 else ViewColor end ),ViewSize = (case when t.sizes&gt;1 then 1 else sizes end )
		from (select #{goodsid,jdbcType=VARCHAR} goodsid, (select top 1 Price from W_Store with(nolock) where goodsid=#{goodsid,jdbcType=VARCHAR} order by Price asc) as Price1,
					(select top 1 Price from W_Store with(nolock) where GoodsID=#{goodsid,jdbcType=VARCHAR}  order by Price desc) as Price2,
					(select count(*) from (select distinct colorid from W_Store with(nolock) where GoodsID=#{goodsid,jdbcType=VARCHAR} ) cl) as colors,
					(select count(*) from (select distinct sizeid from W_Store with(nolock) where GoodsID=#{goodsid,jdbcType=VARCHAR} ) sz) as sizes) t		
		where W_Goods.GoodsID=#{goodsid,jdbcType=VARCHAR} and t.goodsid=W_Goods.goodsid
	</update>
	
	<!-- 获取商品的分类 -->
	<select id="selectgoodstype" resultType="java.util.LinkedHashMap">
		select a.goodstypeid,a.goodstype,case when b.goodsid is not null then 1 else 0 end as status 
		from W_GoodsType a with(nolock) left join
		W_GoodsWebType b with(nolock) on a.GoodsTypeID=b.GoodsTypeID and b.GoodsID=#{goodsid,jdbcType=VARCHAR}	
	</select>
	
	<!-- 读取网店已上架的商品信息下拉列表 -->
	<select id="selectgoodsAtlist" resultType="java.util.LinkedHashMap">
		select a.GoodsID,a.Code,a.GoodName
		from W_Goods a with(nolock) 
		where a.AtList=1
	</select>
	
	<!-- 更新商品的排序索引 -->
	<update id="updateIndex">
		update W_Goods
		set SortIndex = #{indexvalue,jdbcType=INTEGER}
		where GoodsID=#{goodsid,jdbcType=VARCHAR}
	</update>
	
	<!-- 更新商品的排序索引 -->
	<update id="updateMicroform">		
		<if test="list.size() &gt;0">
			update W_Goods	set MicroForm = #{formid,jdbcType=INTEGER}
			where
			goodsid in
			<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
				#{item}
			</foreach>
		</if>
	</update>
		<!-- 更新商品的排序索引 -->
	<update id="emptyMicroform">		
		<if test="list.size() &gt;0">
			update W_Goods	set MicroForm = 0
			where
			goodsid in
			<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
				#{item}
			</foreach>
		</if>
	</update>
	
	<update id="updateLabelimg">		
		<if test="list.size() &gt;0">
			update W_Goods	set LabelImgUrl = #{labelimgurl,jdbcType=VARCHAR}
			where
			goodsid in
			<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
				#{item}
			</foreach>
		</if>
	</update>
		<update id="updatePoint">		
		<if test="list.size() &gt;0">
			update W_Goods	set NoUsePoint =  #{isusepoint,jdbcType=INTEGER}
			where
			goodsid in
			<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
				#{item}
			</foreach>
		</if>
	</update>
	<update id="updateTicket">		
		<if test="list.size() &gt;0">
			update W_Goods	set NoUseTicket =  #{isuseticket,jdbcType=INTEGER}
			where
			goodsid in
			<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
				#{item}
			</foreach>
		</if>
	</update>
	<update id="emptyLabelimg">		
		<if test="list.size() &gt;0">
			update W_Goods	set LabelImgUrl = null
			where
			goodsid in
			<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
				#{item}
			</foreach>
		</if>
	</update>
	
	<!-- 批量修改商品销售价 -->
	<update id="updateGoodsPrice">	
		update a set 
		<if test="chanageby == 1">
			a.Price =  #{goodsprice,jdbcType=DECIMAL},a.PriceDec= #{goodsprice,jdbcType=DECIMAL}
		</if>
		<if test="chanageby != 1">
			a.Price = #{goodsprice,jdbcType=DECIMAL}*a.Price,a.PriceDec= #{goodsprice,jdbcType=DECIMAL}*a.Price
		</if>
		from W_Goods a
		<if test="conditions != null and conditions != ''">
			where ${conditions}
		</if>;
		update b set 
		<if test="chanageby == 1">
			b.Price  =  #{goodsprice,jdbcType=DECIMAL}
		</if>
		<if test="chanageby != 1">
			b.Price  =  #{goodsprice,jdbcType=DECIMAL}*b.Price
		</if>
		from W_Store b inner join W_Goods a on b.GoodsId=a.GoodsId 		
		<if test="conditions != null and conditions != ''">
			where ${conditions}
		</if>;			
	</update>
	<update id="updateNoDiscount">		
		<if test="list.size() &gt;0">
			update W_Goods	set NoDiscount =  #{isdiscount,jdbcType=INTEGER}
			where
			goodsid in
			<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
				#{item}
			</foreach>
		</if>
	</update>
	 <select id="selectByInKey" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Thu Aug 22 17:44:07 CST 2019.
    -->
    select 
    	<include refid="Base_Column_List" />
    from W_Goods
    where GoodsID in
    <foreach collection="list" item="id" index="index" open="(" close=")" separator=",">
	  #{id}
	</foreach>
    
  </select>
</mapper>