<?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.GoodsMapper">
  <resultMap id="BaseResultMap" type="com.fuxi.ws.data.entity.Goods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    <id column="GoodsID" jdbcType="VARCHAR" property="goodsid" />
    <result column="GoodsTypeID" jdbcType="VARCHAR" property="goodstypeid" />
    <result column="Code" jdbcType="VARCHAR" property="code" />
    <result column="OldCode" jdbcType="VARCHAR" property="oldcode" />
    <result column="Name" jdbcType="VARCHAR" property="name" />
    <result column="EName" jdbcType="VARCHAR" property="ename" />
    <result column="OtherName" jdbcType="VARCHAR" property="othername" />
    <result column="BrandID" jdbcType="VARCHAR" property="brandid" />
    <result column="Age" jdbcType="CHAR" property="age" />
    <result column="Season" jdbcType="VARCHAR" property="season" />
    <result column="Model" jdbcType="VARCHAR" property="model" />
    <result column="BrandSerialID" jdbcType="VARCHAR" property="brandserialid" />
    <result column="Kind" jdbcType="VARCHAR" property="kind" />
    <result column="ProducingAreaID" jdbcType="VARCHAR" property="producingareaid" />
    <result column="HelpCode" jdbcType="VARCHAR" property="helpcode" />
    <result column="Unit" jdbcType="VARCHAR" property="unit" />
    <result column="PackUnit" jdbcType="VARCHAR" property="packunit" />
    <result column="PackSize" jdbcType="INTEGER" property="packsize" />
    <result column="Sex" jdbcType="VARCHAR" property="sex" />
    <result column="SupplierID" jdbcType="VARCHAR" property="supplierid" />
    <result column="SupplierCode" jdbcType="VARCHAR" property="suppliercode" />
    <result column="PurchasePrice" jdbcType="DECIMAL" property="purchaseprice" />
    <result column="SalesPoint" jdbcType="DECIMAL" property="salespoint" />
    <result column="RetailSales" jdbcType="DECIMAL" property="retailsales" />
    <result column="TradePrice" jdbcType="DECIMAL" property="tradeprice" />
    <result column="SalesPrice1" jdbcType="DECIMAL" property="salesprice1" />
    <result column="SalesPrice2" jdbcType="DECIMAL" property="salesprice2" />
    <result column="SalesPrice3" jdbcType="DECIMAL" property="salesprice3" />
    <result column="Discount" jdbcType="DECIMAL" property="discount" />
    <result column="BackFlag" jdbcType="BIT" property="backflag" />
    <result column="DiscountFlag" jdbcType="BIT" property="discountflag" />
    <result column="SameFlag" jdbcType="BIT" property="sameflag" />
    <result column="PresentFlag" jdbcType="BIT" property="presentflag" />
    <result column="CostType" jdbcType="VARCHAR" property="costtype" />
    <result column="TopStock" jdbcType="INTEGER" property="topstock" />
    <result column="BottomStock" jdbcType="INTEGER" property="bottomstock" />
    <result column="StockSubjectID" jdbcType="VARCHAR" property="stocksubjectid" />
    <result column="SalesSubjectID" jdbcType="VARCHAR" property="salessubjectid" />
    <result column="CostSubjectID" jdbcType="VARCHAR" property="costsubjectid" />
    <result column="BeginDate" jdbcType="TIMESTAMP" property="begindate" />
    <result column="EndDate" jdbcType="TIMESTAMP" property="enddate" />
    <result column="MadeDate" jdbcType="TIMESTAMP" property="madedate" />
    <result column="Creator" jdbcType="VARCHAR" property="creator" />
    <result column="ModifyDate" jdbcType="TIMESTAMP" property="modifydate" />
    <result column="Editor" jdbcType="VARCHAR" property="editor" />
    <result column="SalesDate" jdbcType="TIMESTAMP" property="salesdate" />
    <result column="PurchasedDate" jdbcType="TIMESTAMP" property="purchaseddate" />
    <result column="LastPurchasedDate" jdbcType="TIMESTAMP" property="lastpurchaseddate" />
    <result column="ExchangeEndDate" jdbcType="TIMESTAMP" property="exchangeenddate" />
    <result column="Memo" jdbcType="VARCHAR" property="memo" />
    <result column="StopFlag" jdbcType="BIT" property="stopflag" />
    <result column="UseFlag" jdbcType="BIT" property="useflag" />
    <result column="GoodsBalance" jdbcType="INTEGER" property="goodsbalance" />
    <result column="MaterialFlag" jdbcType="BIT" property="materialflag" />
    <result column="BackDateLimit" jdbcType="INTEGER" property="backdatelimit" />
    <result column="SendFlag" jdbcType="BIT" property="sendflag" />
    <result column="CostPrice" jdbcType="DECIMAL" property="costprice" />
    <result column="WashType" jdbcType="VARCHAR" property="washtype" />
    <result column="PaymentType" jdbcType="VARCHAR" property="paymenttype" />
    <result column="HireRate" jdbcType="DECIMAL" property="hirerate" />
    <result column="SpecialPriceFlag" jdbcType="BIT" property="specialpriceflag" />
    <result column="PriceType" jdbcType="VARCHAR" property="pricetype" />
    <result column="PriceInt" jdbcType="INTEGER" property="priceint" />
    <result column="OrderTargetQty" jdbcType="INTEGER" property="ordertargetqty" />
    <result column="OrderTargetAnt" jdbcType="DECIMAL" property="ordertargetant" />
    <result column="GroupNo" jdbcType="VARCHAR" property="groupno" />
    <result column="GroupID" jdbcType="VARCHAR" property="groupid" />
    <result column="SalesPrice4" jdbcType="DECIMAL" property="salesprice4" />
    <result column="SalesPrice5" jdbcType="DECIMAL" property="salesprice5" />
    <result column="SalesPrice6" jdbcType="DECIMAL" property="salesprice6" />
    <result column="SalesPrice7" jdbcType="DECIMAL" property="salesprice7" />
    <result column="SalesPrice8" jdbcType="DECIMAL" property="salesprice8" />
    <result column="VIPPrice" jdbcType="DECIMAL" property="vipprice" />
    <result column="RetailSales1" jdbcType="DECIMAL" property="retailsales1" />
    <result column="RetailSales2" jdbcType="DECIMAL" property="retailsales2" />
    <result column="RetailSales3" jdbcType="DECIMAL" property="retailsales3" />
    <result column="RetailSales4" jdbcType="DECIMAL" property="retailsales4" />
    <result column="RetailSales5" jdbcType="DECIMAL" property="retailsales5" />
    <result column="RetailSales6" jdbcType="DECIMAL" property="retailsales6" />
    <result column="RetailSales7" jdbcType="DECIMAL" property="retailsales7" />
    <result column="RetailSales8" jdbcType="DECIMAL" property="retailsales8" />
    <result column="Seller" jdbcType="VARCHAR" property="seller" />
    <result column="EmployeeID" jdbcType="VARCHAR" property="employeeid" />
    <result column="PackageCost" jdbcType="DECIMAL" property="packagecost" />
    <result column="DevelopProfit" jdbcType="DECIMAL" property="developprofit" />
    <result column="Designer" jdbcType="VARCHAR" property="designer" />
    <result column="Grade" jdbcType="VARCHAR" property="grade" />
    <result column="PerformStandard" jdbcType="VARCHAR" property="performstandard" />
    <result column="SecurityType" jdbcType="VARCHAR" property="securitytype" />
    <result column="StandardCode" jdbcType="VARCHAR" property="standardcode" />
    <result column="Model1" jdbcType="VARCHAR" property="model1" />
    <result column="Model2" jdbcType="VARCHAR" property="model2" />
    <result column="Model3" jdbcType="VARCHAR" property="model3" />
    <result column="Model4" jdbcType="VARCHAR" property="model4" />
    <result column="BrandPrintStyle" jdbcType="VARCHAR" property="brandprintstyle" />
    <result column="WashPrintStyle" jdbcType="VARCHAR" property="washprintstyle" />
    <result column="SalesMarket" jdbcType="VARCHAR" property="salesmarket" />
    <result column="PrintFlag" jdbcType="BIT" property="printflag" />
    <result column="FOB" jdbcType="DECIMAL" property="fob" />
    <result column="NonDiscount" jdbcType="BIT" property="nondiscount" />
    <result column="LowRetailSales" jdbcType="DECIMAL" property="lowretailsales" />
    <result column="NonPoint" jdbcType="BIT" property="nonpoint" />
    <result column="BrandOutlay" jdbcType="DECIMAL" property="brandoutlay" />
    <result column="BOMFlag" jdbcType="BIT" property="bomflag" />
    <result column="Model5" jdbcType="VARCHAR" property="model5" />
    <result column="Model6" jdbcType="VARCHAR" property="model6" />
    <result column="Model7" jdbcType="VARCHAR" property="model7" />
    <result column="Model8" jdbcType="VARCHAR" property="model8" />
    <result column="Model9" jdbcType="VARCHAR" property="model9" />
    <result column="Audit" jdbcType="VARCHAR" property="audit" />
    <result column="GoodsAudit" jdbcType="VARCHAR" property="goodsaudit" />
    <result column="GoodsAuditFlag" jdbcType="BIT" property="goodsauditflag" />
    <result column="GoodsAuditDate" jdbcType="TIMESTAMP" property="goodsauditdate" />
    <result column="Style" jdbcType="VARCHAR" property="style" />
    <result column="Heel" jdbcType="VARCHAR" property="heel" />
    <result column="SubType" jdbcType="VARCHAR" property="subtype" />
    <result column="PointRate" jdbcType="DECIMAL" property="pointrate" />
    <result column="InitialPrice" jdbcType="DECIMAL" property="initialprice" />
    <result column="IsNew" jdbcType="BIT" property="isnew" />
    <result column="IsOnLine" jdbcType="BIT" property="isonline" />
    <result column="RecommendOnLine" jdbcType="BIT" property="recommendonline" />
    <result column="MaxSizeNo" jdbcType="INTEGER" property="maxsizeno" />
    <result column="IsSample" jdbcType="BIT" property="issample" />
    <result column="NonReturnCash" jdbcType="BIT" property="nonreturncash" />
    <result column="NonExchangeProfit" jdbcType="BIT" property="nonexchangeprofit" />
    <result column="ListingDate" jdbcType="TIMESTAMP" property="listingdate" />
    <result column="CanEditPriceForPOS" jdbcType="BIT" property="caneditpriceforpos" />
    <result column="Code_EShop" jdbcType="VARCHAR" property="codeEshop" />
    <result column="KnotCode" jdbcType="VARCHAR" property="knotcode" />
    <result column="PackType" jdbcType="VARCHAR" property="packtype" />
    <result column="Band" jdbcType="VARCHAR" property="band" />
    <result column="WSupplierID" jdbcType="INTEGER" property="wsupplierid" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.fuxi.ws.data.entity.Goods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    <result column="Descript" jdbcType="LONGVARCHAR" property="descript" />
  </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 Jan 18 16:21:04 CST 2017.
    -->
    <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 Jan 18 16:21:04 CST 2017.
    -->
    GoodsID, GoodsTypeID, Code, OldCode, Name, EName, OtherName, BrandID, Age, Season, 
    Model, BrandSerialID, Kind, ProducingAreaID, HelpCode, Unit, PackUnit, PackSize, 
    Sex, SupplierID, SupplierCode, PurchasePrice, SalesPoint, RetailSales, TradePrice, 
    SalesPrice1, SalesPrice2, SalesPrice3, Discount, BackFlag, DiscountFlag, SameFlag, 
    PresentFlag, CostType, TopStock, BottomStock, StockSubjectID, SalesSubjectID, CostSubjectID, 
    BeginDate, EndDate, MadeDate, Creator, ModifyDate, Editor, SalesDate, PurchasedDate, 
    LastPurchasedDate, ExchangeEndDate, Memo, StopFlag, UseFlag, GoodsBalance, MaterialFlag, 
    BackDateLimit, SendFlag, CostPrice, WashType, PaymentType, HireRate, SpecialPriceFlag, 
    PriceType, PriceInt, OrderTargetQty, OrderTargetAnt, GroupNo, GroupID, SalesPrice4, 
    SalesPrice5, SalesPrice6, SalesPrice7, SalesPrice8, VIPPrice, RetailSales1, RetailSales2, 
    RetailSales3, RetailSales4, RetailSales5, RetailSales6, RetailSales7, RetailSales8, 
    Seller, EmployeeID, PackageCost, DevelopProfit, Designer, Grade, PerformStandard, 
    SecurityType, StandardCode, Model1, Model2, Model3, Model4, BrandPrintStyle, WashPrintStyle, 
    SalesMarket, PrintFlag, FOB, NonDiscount, LowRetailSales, NonPoint, BrandOutlay, 
    BOMFlag, Model5, Model6, Model7, Model8, Model9, Audit, GoodsAudit, GoodsAuditFlag, 
    GoodsAuditDate, Style, Heel, SubType, PointRate, InitialPrice, IsNew, IsOnLine, RecommendOnLine, 
    MaxSizeNo, IsSample, NonReturnCash, NonExchangeProfit, ListingDate, CanEditPriceForPOS, 
    Code_EShop, KnotCode, PackType, Band, WSupplierID
  </sql>
  <sql id="Blob_Column_List">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    Descript
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.fuxi.ws.data.entity.GoodsExample" resultMap="ResultMapWithBLOBs">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    'false' as QUERYID,
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from Goods
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="com.fuxi.ws.data.entity.GoodsExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    'false' as QUERYID,
    <include refid="Base_Column_List" />
    from 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="ResultMapWithBLOBs">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from 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 Wed Jan 18 16:21:04 CST 2017.
    -->
    delete from Goods
    where GoodsID = #{goodsid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.fuxi.ws.data.entity.Goods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    insert into Goods (GoodsID, GoodsTypeID, Code, 
      OldCode, Name, EName, 
      OtherName, BrandID, Age, 
      Season, Model, BrandSerialID, 
      Kind, ProducingAreaID, HelpCode, 
      Unit, PackUnit, PackSize, 
      Sex, SupplierID, SupplierCode, 
      PurchasePrice, SalesPoint, RetailSales, 
      TradePrice, SalesPrice1, SalesPrice2, 
      SalesPrice3, Discount, BackFlag, 
      DiscountFlag, SameFlag, PresentFlag, 
      CostType, TopStock, BottomStock, 
      StockSubjectID, SalesSubjectID, CostSubjectID, 
      BeginDate, EndDate, MadeDate, 
      Creator, ModifyDate, Editor, 
      SalesDate, PurchasedDate, LastPurchasedDate, 
      ExchangeEndDate, Memo, StopFlag, 
      UseFlag, GoodsBalance, MaterialFlag, 
      BackDateLimit, SendFlag, CostPrice, 
      WashType, PaymentType, HireRate, 
      SpecialPriceFlag, PriceType, PriceInt, 
      OrderTargetQty, OrderTargetAnt, GroupNo, 
      GroupID, SalesPrice4, SalesPrice5, 
      SalesPrice6, SalesPrice7, SalesPrice8, 
      VIPPrice, RetailSales1, RetailSales2, 
      RetailSales3, RetailSales4, RetailSales5, 
      RetailSales6, RetailSales7, RetailSales8, 
      Seller, EmployeeID, PackageCost, 
      DevelopProfit, Designer, Grade, 
      PerformStandard, SecurityType, StandardCode, 
      Model1, Model2, Model3, 
      Model4, BrandPrintStyle, WashPrintStyle, 
      SalesMarket, PrintFlag, FOB, 
      NonDiscount, LowRetailSales, NonPoint, 
      BrandOutlay, BOMFlag, Model5, 
      Model6, Model7, Model8, 
      Model9, Audit, GoodsAudit, 
      GoodsAuditFlag, GoodsAuditDate, Style, 
      Heel, SubType, PointRate, 
      InitialPrice, IsNew, IsOnLine, 
      RecommendOnLine, MaxSizeNo, IsSample, 
      NonReturnCash, NonExchangeProfit, ListingDate, 
      CanEditPriceForPOS, Code_EShop, KnotCode, 
      PackType, Band, WSupplierID, 
      Descript)
    values (#{goodsid,jdbcType=VARCHAR}, #{goodstypeid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, 
      #{oldcode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{ename,jdbcType=VARCHAR}, 
      #{othername,jdbcType=VARCHAR}, #{brandid,jdbcType=VARCHAR}, #{age,jdbcType=CHAR}, 
      #{season,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{brandserialid,jdbcType=VARCHAR}, 
      #{kind,jdbcType=VARCHAR}, #{producingareaid,jdbcType=VARCHAR}, #{helpcode,jdbcType=VARCHAR}, 
      #{unit,jdbcType=VARCHAR}, #{packunit,jdbcType=VARCHAR}, #{packsize,jdbcType=INTEGER}, 
      #{sex,jdbcType=VARCHAR}, #{supplierid,jdbcType=VARCHAR}, #{suppliercode,jdbcType=VARCHAR}, 
      #{purchaseprice,jdbcType=DECIMAL}, #{salespoint,jdbcType=DECIMAL}, #{retailsales,jdbcType=DECIMAL}, 
      #{tradeprice,jdbcType=DECIMAL}, #{salesprice1,jdbcType=DECIMAL}, #{salesprice2,jdbcType=DECIMAL}, 
      #{salesprice3,jdbcType=DECIMAL}, #{discount,jdbcType=DECIMAL}, #{backflag,jdbcType=BIT}, 
      #{discountflag,jdbcType=BIT}, #{sameflag,jdbcType=BIT}, #{presentflag,jdbcType=BIT}, 
      #{costtype,jdbcType=VARCHAR}, #{topstock,jdbcType=INTEGER}, #{bottomstock,jdbcType=INTEGER}, 
      #{stocksubjectid,jdbcType=VARCHAR}, #{salessubjectid,jdbcType=VARCHAR}, #{costsubjectid,jdbcType=VARCHAR}, 
      #{begindate,jdbcType=TIMESTAMP}, #{enddate,jdbcType=TIMESTAMP}, #{madedate,jdbcType=TIMESTAMP}, 
      #{creator,jdbcType=VARCHAR}, #{modifydate,jdbcType=TIMESTAMP}, #{editor,jdbcType=VARCHAR}, 
      #{salesdate,jdbcType=TIMESTAMP}, #{purchaseddate,jdbcType=TIMESTAMP}, #{lastpurchaseddate,jdbcType=TIMESTAMP}, 
      #{exchangeenddate,jdbcType=TIMESTAMP}, #{memo,jdbcType=VARCHAR}, #{stopflag,jdbcType=BIT}, 
      #{useflag,jdbcType=BIT}, #{goodsbalance,jdbcType=INTEGER}, #{materialflag,jdbcType=BIT}, 
      #{backdatelimit,jdbcType=INTEGER}, #{sendflag,jdbcType=BIT}, #{costprice,jdbcType=DECIMAL}, 
      #{washtype,jdbcType=VARCHAR}, #{paymenttype,jdbcType=VARCHAR}, #{hirerate,jdbcType=DECIMAL}, 
      #{specialpriceflag,jdbcType=BIT}, #{pricetype,jdbcType=VARCHAR}, #{priceint,jdbcType=INTEGER}, 
      #{ordertargetqty,jdbcType=INTEGER}, #{ordertargetant,jdbcType=DECIMAL}, #{groupno,jdbcType=VARCHAR}, 
      #{groupid,jdbcType=VARCHAR}, #{salesprice4,jdbcType=DECIMAL}, #{salesprice5,jdbcType=DECIMAL}, 
      #{salesprice6,jdbcType=DECIMAL}, #{salesprice7,jdbcType=DECIMAL}, #{salesprice8,jdbcType=DECIMAL}, 
      #{vipprice,jdbcType=DECIMAL}, #{retailsales1,jdbcType=DECIMAL}, #{retailsales2,jdbcType=DECIMAL}, 
      #{retailsales3,jdbcType=DECIMAL}, #{retailsales4,jdbcType=DECIMAL}, #{retailsales5,jdbcType=DECIMAL}, 
      #{retailsales6,jdbcType=DECIMAL}, #{retailsales7,jdbcType=DECIMAL}, #{retailsales8,jdbcType=DECIMAL}, 
      #{seller,jdbcType=VARCHAR}, #{employeeid,jdbcType=VARCHAR}, #{packagecost,jdbcType=DECIMAL}, 
      #{developprofit,jdbcType=DECIMAL}, #{designer,jdbcType=VARCHAR}, #{grade,jdbcType=VARCHAR}, 
      #{performstandard,jdbcType=VARCHAR}, #{securitytype,jdbcType=VARCHAR}, #{standardcode,jdbcType=VARCHAR}, 
      #{model1,jdbcType=VARCHAR}, #{model2,jdbcType=VARCHAR}, #{model3,jdbcType=VARCHAR}, 
      #{model4,jdbcType=VARCHAR}, #{brandprintstyle,jdbcType=VARCHAR}, #{washprintstyle,jdbcType=VARCHAR}, 
      #{salesmarket,jdbcType=VARCHAR}, #{printflag,jdbcType=BIT}, #{fob,jdbcType=DECIMAL}, 
      #{nondiscount,jdbcType=BIT}, #{lowretailsales,jdbcType=DECIMAL}, #{nonpoint,jdbcType=BIT}, 
      #{brandoutlay,jdbcType=DECIMAL}, #{bomflag,jdbcType=BIT}, #{model5,jdbcType=VARCHAR}, 
      #{model6,jdbcType=VARCHAR}, #{model7,jdbcType=VARCHAR}, #{model8,jdbcType=VARCHAR}, 
      #{model9,jdbcType=VARCHAR}, #{audit,jdbcType=VARCHAR}, #{goodsaudit,jdbcType=VARCHAR}, 
      #{goodsauditflag,jdbcType=BIT}, #{goodsauditdate,jdbcType=TIMESTAMP}, #{style,jdbcType=VARCHAR}, 
      #{heel,jdbcType=VARCHAR}, #{subtype,jdbcType=VARCHAR}, #{pointrate,jdbcType=DECIMAL}, 
      #{initialprice,jdbcType=DECIMAL}, #{isnew,jdbcType=BIT}, #{isonline,jdbcType=BIT}, 
      #{recommendonline,jdbcType=BIT}, #{maxsizeno,jdbcType=INTEGER}, #{issample,jdbcType=BIT}, 
      #{nonreturncash,jdbcType=BIT}, #{nonexchangeprofit,jdbcType=BIT}, #{listingdate,jdbcType=TIMESTAMP}, 
      #{caneditpriceforpos,jdbcType=BIT}, #{codeEshop,jdbcType=VARCHAR}, #{knotcode,jdbcType=VARCHAR}, 
      #{packtype,jdbcType=VARCHAR}, #{band,jdbcType=VARCHAR}, #{wsupplierid,jdbcType=INTEGER}, 
      #{descript,jdbcType=LONGVARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.fuxi.ws.data.entity.Goods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    insert into Goods
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="goodsid != null">
        GoodsID,
      </if>
      <if test="goodstypeid != null">
        GoodsTypeID,
      </if>
      <if test="code != null">
        Code,
      </if>
      <if test="oldcode != null">
        OldCode,
      </if>
      <if test="name != null">
        Name,
      </if>
      <if test="ename != null">
        EName,
      </if>
      <if test="othername != null">
        OtherName,
      </if>
      <if test="brandid != null">
        BrandID,
      </if>
      <if test="age != null">
        Age,
      </if>
      <if test="season != null">
        Season,
      </if>
      <if test="model != null">
        Model,
      </if>
      <if test="brandserialid != null">
        BrandSerialID,
      </if>
      <if test="kind != null">
        Kind,
      </if>
      <if test="producingareaid != null">
        ProducingAreaID,
      </if>
      <if test="helpcode != null">
        HelpCode,
      </if>
      <if test="unit != null">
        Unit,
      </if>
      <if test="packunit != null">
        PackUnit,
      </if>
      <if test="packsize != null">
        PackSize,
      </if>
      <if test="sex != null">
        Sex,
      </if>
      <if test="supplierid != null">
        SupplierID,
      </if>
      <if test="suppliercode != null">
        SupplierCode,
      </if>
      <if test="purchaseprice != null">
        PurchasePrice,
      </if>
      <if test="salespoint != null">
        SalesPoint,
      </if>
      <if test="retailsales != null">
        RetailSales,
      </if>
      <if test="tradeprice != null">
        TradePrice,
      </if>
      <if test="salesprice1 != null">
        SalesPrice1,
      </if>
      <if test="salesprice2 != null">
        SalesPrice2,
      </if>
      <if test="salesprice3 != null">
        SalesPrice3,
      </if>
      <if test="discount != null">
        Discount,
      </if>
      <if test="backflag != null">
        BackFlag,
      </if>
      <if test="discountflag != null">
        DiscountFlag,
      </if>
      <if test="sameflag != null">
        SameFlag,
      </if>
      <if test="presentflag != null">
        PresentFlag,
      </if>
      <if test="costtype != null">
        CostType,
      </if>
      <if test="topstock != null">
        TopStock,
      </if>
      <if test="bottomstock != null">
        BottomStock,
      </if>
      <if test="stocksubjectid != null">
        StockSubjectID,
      </if>
      <if test="salessubjectid != null">
        SalesSubjectID,
      </if>
      <if test="costsubjectid != null">
        CostSubjectID,
      </if>
      <if test="begindate != null">
        BeginDate,
      </if>
      <if test="enddate != null">
        EndDate,
      </if>
      <if test="madedate != null">
        MadeDate,
      </if>
      <if test="creator != null">
        Creator,
      </if>
      <if test="modifydate != null">
        ModifyDate,
      </if>
      <if test="editor != null">
        Editor,
      </if>
      <if test="salesdate != null">
        SalesDate,
      </if>
      <if test="purchaseddate != null">
        PurchasedDate,
      </if>
      <if test="lastpurchaseddate != null">
        LastPurchasedDate,
      </if>
      <if test="exchangeenddate != null">
        ExchangeEndDate,
      </if>
      <if test="memo != null">
        Memo,
      </if>
      <if test="stopflag != null">
        StopFlag,
      </if>
      <if test="useflag != null">
        UseFlag,
      </if>
      <if test="goodsbalance != null">
        GoodsBalance,
      </if>
      <if test="materialflag != null">
        MaterialFlag,
      </if>
      <if test="backdatelimit != null">
        BackDateLimit,
      </if>
      <if test="sendflag != null">
        SendFlag,
      </if>
      <if test="costprice != null">
        CostPrice,
      </if>
      <if test="washtype != null">
        WashType,
      </if>
      <if test="paymenttype != null">
        PaymentType,
      </if>
      <if test="hirerate != null">
        HireRate,
      </if>
      <if test="specialpriceflag != null">
        SpecialPriceFlag,
      </if>
      <if test="pricetype != null">
        PriceType,
      </if>
      <if test="priceint != null">
        PriceInt,
      </if>
      <if test="ordertargetqty != null">
        OrderTargetQty,
      </if>
      <if test="ordertargetant != null">
        OrderTargetAnt,
      </if>
      <if test="groupno != null">
        GroupNo,
      </if>
      <if test="groupid != null">
        GroupID,
      </if>
      <if test="salesprice4 != null">
        SalesPrice4,
      </if>
      <if test="salesprice5 != null">
        SalesPrice5,
      </if>
      <if test="salesprice6 != null">
        SalesPrice6,
      </if>
      <if test="salesprice7 != null">
        SalesPrice7,
      </if>
      <if test="salesprice8 != null">
        SalesPrice8,
      </if>
      <if test="vipprice != null">
        VIPPrice,
      </if>
      <if test="retailsales1 != null">
        RetailSales1,
      </if>
      <if test="retailsales2 != null">
        RetailSales2,
      </if>
      <if test="retailsales3 != null">
        RetailSales3,
      </if>
      <if test="retailsales4 != null">
        RetailSales4,
      </if>
      <if test="retailsales5 != null">
        RetailSales5,
      </if>
      <if test="retailsales6 != null">
        RetailSales6,
      </if>
      <if test="retailsales7 != null">
        RetailSales7,
      </if>
      <if test="retailsales8 != null">
        RetailSales8,
      </if>
      <if test="seller != null">
        Seller,
      </if>
      <if test="employeeid != null">
        EmployeeID,
      </if>
      <if test="packagecost != null">
        PackageCost,
      </if>
      <if test="developprofit != null">
        DevelopProfit,
      </if>
      <if test="designer != null">
        Designer,
      </if>
      <if test="grade != null">
        Grade,
      </if>
      <if test="performstandard != null">
        PerformStandard,
      </if>
      <if test="securitytype != null">
        SecurityType,
      </if>
      <if test="standardcode != null">
        StandardCode,
      </if>
      <if test="model1 != null">
        Model1,
      </if>
      <if test="model2 != null">
        Model2,
      </if>
      <if test="model3 != null">
        Model3,
      </if>
      <if test="model4 != null">
        Model4,
      </if>
      <if test="brandprintstyle != null">
        BrandPrintStyle,
      </if>
      <if test="washprintstyle != null">
        WashPrintStyle,
      </if>
      <if test="salesmarket != null">
        SalesMarket,
      </if>
      <if test="printflag != null">
        PrintFlag,
      </if>
      <if test="fob != null">
        FOB,
      </if>
      <if test="nondiscount != null">
        NonDiscount,
      </if>
      <if test="lowretailsales != null">
        LowRetailSales,
      </if>
      <if test="nonpoint != null">
        NonPoint,
      </if>
      <if test="brandoutlay != null">
        BrandOutlay,
      </if>
      <if test="bomflag != null">
        BOMFlag,
      </if>
      <if test="model5 != null">
        Model5,
      </if>
      <if test="model6 != null">
        Model6,
      </if>
      <if test="model7 != null">
        Model7,
      </if>
      <if test="model8 != null">
        Model8,
      </if>
      <if test="model9 != null">
        Model9,
      </if>
      <if test="audit != null">
        Audit,
      </if>
      <if test="goodsaudit != null">
        GoodsAudit,
      </if>
      <if test="goodsauditflag != null">
        GoodsAuditFlag,
      </if>
      <if test="goodsauditdate != null">
        GoodsAuditDate,
      </if>
      <if test="style != null">
        Style,
      </if>
      <if test="heel != null">
        Heel,
      </if>
      <if test="subtype != null">
        SubType,
      </if>
      <if test="pointrate != null">
        PointRate,
      </if>
      <if test="initialprice != null">
        InitialPrice,
      </if>
      <if test="isnew != null">
        IsNew,
      </if>
      <if test="isonline != null">
        IsOnLine,
      </if>
      <if test="recommendonline != null">
        RecommendOnLine,
      </if>
      <if test="maxsizeno != null">
        MaxSizeNo,
      </if>
      <if test="issample != null">
        IsSample,
      </if>
      <if test="nonreturncash != null">
        NonReturnCash,
      </if>
      <if test="nonexchangeprofit != null">
        NonExchangeProfit,
      </if>
      <if test="listingdate != null">
        ListingDate,
      </if>
      <if test="caneditpriceforpos != null">
        CanEditPriceForPOS,
      </if>
      <if test="codeEshop != null">
        Code_EShop,
      </if>
      <if test="knotcode != null">
        KnotCode,
      </if>
      <if test="packtype != null">
        PackType,
      </if>
      <if test="band != null">
        Band,
      </if>
      <if test="wsupplierid != null">
        WSupplierID,
      </if>
      <if test="descript != null">
        Descript,
      </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="code != null">
        #{code,jdbcType=VARCHAR},
      </if>
      <if test="oldcode != null">
        #{oldcode,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="ename != null">
        #{ename,jdbcType=VARCHAR},
      </if>
      <if test="othername != null">
        #{othername,jdbcType=VARCHAR},
      </if>
      <if test="brandid != null">
        #{brandid,jdbcType=VARCHAR},
      </if>
      <if test="age != null">
        #{age,jdbcType=CHAR},
      </if>
      <if test="season != null">
        #{season,jdbcType=VARCHAR},
      </if>
      <if test="model != null">
        #{model,jdbcType=VARCHAR},
      </if>
      <if test="brandserialid != null">
        #{brandserialid,jdbcType=VARCHAR},
      </if>
      <if test="kind != null">
        #{kind,jdbcType=VARCHAR},
      </if>
      <if test="producingareaid != null">
        #{producingareaid,jdbcType=VARCHAR},
      </if>
      <if test="helpcode != null">
        #{helpcode,jdbcType=VARCHAR},
      </if>
      <if test="unit != null">
        #{unit,jdbcType=VARCHAR},
      </if>
      <if test="packunit != null">
        #{packunit,jdbcType=VARCHAR},
      </if>
      <if test="packsize != null">
        #{packsize,jdbcType=INTEGER},
      </if>
      <if test="sex != null">
        #{sex,jdbcType=VARCHAR},
      </if>
      <if test="supplierid != null">
        #{supplierid,jdbcType=VARCHAR},
      </if>
      <if test="suppliercode != null">
        #{suppliercode,jdbcType=VARCHAR},
      </if>
      <if test="purchaseprice != null">
        #{purchaseprice,jdbcType=DECIMAL},
      </if>
      <if test="salespoint != null">
        #{salespoint,jdbcType=DECIMAL},
      </if>
      <if test="retailsales != null">
        #{retailsales,jdbcType=DECIMAL},
      </if>
      <if test="tradeprice != null">
        #{tradeprice,jdbcType=DECIMAL},
      </if>
      <if test="salesprice1 != null">
        #{salesprice1,jdbcType=DECIMAL},
      </if>
      <if test="salesprice2 != null">
        #{salesprice2,jdbcType=DECIMAL},
      </if>
      <if test="salesprice3 != null">
        #{salesprice3,jdbcType=DECIMAL},
      </if>
      <if test="discount != null">
        #{discount,jdbcType=DECIMAL},
      </if>
      <if test="backflag != null">
        #{backflag,jdbcType=BIT},
      </if>
      <if test="discountflag != null">
        #{discountflag,jdbcType=BIT},
      </if>
      <if test="sameflag != null">
        #{sameflag,jdbcType=BIT},
      </if>
      <if test="presentflag != null">
        #{presentflag,jdbcType=BIT},
      </if>
      <if test="costtype != null">
        #{costtype,jdbcType=VARCHAR},
      </if>
      <if test="topstock != null">
        #{topstock,jdbcType=INTEGER},
      </if>
      <if test="bottomstock != null">
        #{bottomstock,jdbcType=INTEGER},
      </if>
      <if test="stocksubjectid != null">
        #{stocksubjectid,jdbcType=VARCHAR},
      </if>
      <if test="salessubjectid != null">
        #{salessubjectid,jdbcType=VARCHAR},
      </if>
      <if test="costsubjectid != null">
        #{costsubjectid,jdbcType=VARCHAR},
      </if>
      <if test="begindate != null">
        #{begindate,jdbcType=TIMESTAMP},
      </if>
      <if test="enddate != null">
        #{enddate,jdbcType=TIMESTAMP},
      </if>
      <if test="madedate != null">
        #{madedate,jdbcType=TIMESTAMP},
      </if>
      <if test="creator != null">
        #{creator,jdbcType=VARCHAR},
      </if>
      <if test="modifydate != null">
        #{modifydate,jdbcType=TIMESTAMP},
      </if>
      <if test="editor != null">
        #{editor,jdbcType=VARCHAR},
      </if>
      <if test="salesdate != null">
        #{salesdate,jdbcType=TIMESTAMP},
      </if>
      <if test="purchaseddate != null">
        #{purchaseddate,jdbcType=TIMESTAMP},
      </if>
      <if test="lastpurchaseddate != null">
        #{lastpurchaseddate,jdbcType=TIMESTAMP},
      </if>
      <if test="exchangeenddate != null">
        #{exchangeenddate,jdbcType=TIMESTAMP},
      </if>
      <if test="memo != null">
        #{memo,jdbcType=VARCHAR},
      </if>
      <if test="stopflag != null">
        #{stopflag,jdbcType=BIT},
      </if>
      <if test="useflag != null">
        #{useflag,jdbcType=BIT},
      </if>
      <if test="goodsbalance != null">
        #{goodsbalance,jdbcType=INTEGER},
      </if>
      <if test="materialflag != null">
        #{materialflag,jdbcType=BIT},
      </if>
      <if test="backdatelimit != null">
        #{backdatelimit,jdbcType=INTEGER},
      </if>
      <if test="sendflag != null">
        #{sendflag,jdbcType=BIT},
      </if>
      <if test="costprice != null">
        #{costprice,jdbcType=DECIMAL},
      </if>
      <if test="washtype != null">
        #{washtype,jdbcType=VARCHAR},
      </if>
      <if test="paymenttype != null">
        #{paymenttype,jdbcType=VARCHAR},
      </if>
      <if test="hirerate != null">
        #{hirerate,jdbcType=DECIMAL},
      </if>
      <if test="specialpriceflag != null">
        #{specialpriceflag,jdbcType=BIT},
      </if>
      <if test="pricetype != null">
        #{pricetype,jdbcType=VARCHAR},
      </if>
      <if test="priceint != null">
        #{priceint,jdbcType=INTEGER},
      </if>
      <if test="ordertargetqty != null">
        #{ordertargetqty,jdbcType=INTEGER},
      </if>
      <if test="ordertargetant != null">
        #{ordertargetant,jdbcType=DECIMAL},
      </if>
      <if test="groupno != null">
        #{groupno,jdbcType=VARCHAR},
      </if>
      <if test="groupid != null">
        #{groupid,jdbcType=VARCHAR},
      </if>
      <if test="salesprice4 != null">
        #{salesprice4,jdbcType=DECIMAL},
      </if>
      <if test="salesprice5 != null">
        #{salesprice5,jdbcType=DECIMAL},
      </if>
      <if test="salesprice6 != null">
        #{salesprice6,jdbcType=DECIMAL},
      </if>
      <if test="salesprice7 != null">
        #{salesprice7,jdbcType=DECIMAL},
      </if>
      <if test="salesprice8 != null">
        #{salesprice8,jdbcType=DECIMAL},
      </if>
      <if test="vipprice != null">
        #{vipprice,jdbcType=DECIMAL},
      </if>
      <if test="retailsales1 != null">
        #{retailsales1,jdbcType=DECIMAL},
      </if>
      <if test="retailsales2 != null">
        #{retailsales2,jdbcType=DECIMAL},
      </if>
      <if test="retailsales3 != null">
        #{retailsales3,jdbcType=DECIMAL},
      </if>
      <if test="retailsales4 != null">
        #{retailsales4,jdbcType=DECIMAL},
      </if>
      <if test="retailsales5 != null">
        #{retailsales5,jdbcType=DECIMAL},
      </if>
      <if test="retailsales6 != null">
        #{retailsales6,jdbcType=DECIMAL},
      </if>
      <if test="retailsales7 != null">
        #{retailsales7,jdbcType=DECIMAL},
      </if>
      <if test="retailsales8 != null">
        #{retailsales8,jdbcType=DECIMAL},
      </if>
      <if test="seller != null">
        #{seller,jdbcType=VARCHAR},
      </if>
      <if test="employeeid != null">
        #{employeeid,jdbcType=VARCHAR},
      </if>
      <if test="packagecost != null">
        #{packagecost,jdbcType=DECIMAL},
      </if>
      <if test="developprofit != null">
        #{developprofit,jdbcType=DECIMAL},
      </if>
      <if test="designer != null">
        #{designer,jdbcType=VARCHAR},
      </if>
      <if test="grade != null">
        #{grade,jdbcType=VARCHAR},
      </if>
      <if test="performstandard != null">
        #{performstandard,jdbcType=VARCHAR},
      </if>
      <if test="securitytype != null">
        #{securitytype,jdbcType=VARCHAR},
      </if>
      <if test="standardcode != null">
        #{standardcode,jdbcType=VARCHAR},
      </if>
      <if test="model1 != null">
        #{model1,jdbcType=VARCHAR},
      </if>
      <if test="model2 != null">
        #{model2,jdbcType=VARCHAR},
      </if>
      <if test="model3 != null">
        #{model3,jdbcType=VARCHAR},
      </if>
      <if test="model4 != null">
        #{model4,jdbcType=VARCHAR},
      </if>
      <if test="brandprintstyle != null">
        #{brandprintstyle,jdbcType=VARCHAR},
      </if>
      <if test="washprintstyle != null">
        #{washprintstyle,jdbcType=VARCHAR},
      </if>
      <if test="salesmarket != null">
        #{salesmarket,jdbcType=VARCHAR},
      </if>
      <if test="printflag != null">
        #{printflag,jdbcType=BIT},
      </if>
      <if test="fob != null">
        #{fob,jdbcType=DECIMAL},
      </if>
      <if test="nondiscount != null">
        #{nondiscount,jdbcType=BIT},
      </if>
      <if test="lowretailsales != null">
        #{lowretailsales,jdbcType=DECIMAL},
      </if>
      <if test="nonpoint != null">
        #{nonpoint,jdbcType=BIT},
      </if>
      <if test="brandoutlay != null">
        #{brandoutlay,jdbcType=DECIMAL},
      </if>
      <if test="bomflag != null">
        #{bomflag,jdbcType=BIT},
      </if>
      <if test="model5 != null">
        #{model5,jdbcType=VARCHAR},
      </if>
      <if test="model6 != null">
        #{model6,jdbcType=VARCHAR},
      </if>
      <if test="model7 != null">
        #{model7,jdbcType=VARCHAR},
      </if>
      <if test="model8 != null">
        #{model8,jdbcType=VARCHAR},
      </if>
      <if test="model9 != null">
        #{model9,jdbcType=VARCHAR},
      </if>
      <if test="audit != null">
        #{audit,jdbcType=VARCHAR},
      </if>
      <if test="goodsaudit != null">
        #{goodsaudit,jdbcType=VARCHAR},
      </if>
      <if test="goodsauditflag != null">
        #{goodsauditflag,jdbcType=BIT},
      </if>
      <if test="goodsauditdate != null">
        #{goodsauditdate,jdbcType=TIMESTAMP},
      </if>
      <if test="style != null">
        #{style,jdbcType=VARCHAR},
      </if>
      <if test="heel != null">
        #{heel,jdbcType=VARCHAR},
      </if>
      <if test="subtype != null">
        #{subtype,jdbcType=VARCHAR},
      </if>
      <if test="pointrate != null">
        #{pointrate,jdbcType=DECIMAL},
      </if>
      <if test="initialprice != null">
        #{initialprice,jdbcType=DECIMAL},
      </if>
      <if test="isnew != null">
        #{isnew,jdbcType=BIT},
      </if>
      <if test="isonline != null">
        #{isonline,jdbcType=BIT},
      </if>
      <if test="recommendonline != null">
        #{recommendonline,jdbcType=BIT},
      </if>
      <if test="maxsizeno != null">
        #{maxsizeno,jdbcType=INTEGER},
      </if>
      <if test="issample != null">
        #{issample,jdbcType=BIT},
      </if>
      <if test="nonreturncash != null">
        #{nonreturncash,jdbcType=BIT},
      </if>
      <if test="nonexchangeprofit != null">
        #{nonexchangeprofit,jdbcType=BIT},
      </if>
      <if test="listingdate != null">
        #{listingdate,jdbcType=TIMESTAMP},
      </if>
      <if test="caneditpriceforpos != null">
        #{caneditpriceforpos,jdbcType=BIT},
      </if>
      <if test="codeEshop != null">
        #{codeEshop,jdbcType=VARCHAR},
      </if>
      <if test="knotcode != null">
        #{knotcode,jdbcType=VARCHAR},
      </if>
      <if test="packtype != null">
        #{packtype,jdbcType=VARCHAR},
      </if>
      <if test="band != null">
        #{band,jdbcType=VARCHAR},
      </if>
      <if test="wsupplierid != null">
        #{wsupplierid,jdbcType=INTEGER},
      </if>
      <if test="descript != null">
        #{descript,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.fuxi.ws.data.entity.GoodsExample" resultType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    select count(*) from Goods
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByPrimaryKeySelective" parameterType="com.fuxi.ws.data.entity.Goods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    update Goods
    <set>
      <if test="goodstypeid != null">
        GoodsTypeID = #{goodstypeid,jdbcType=VARCHAR},
      </if>
      <if test="code != null">
        Code = #{code,jdbcType=VARCHAR},
      </if>
      <if test="oldcode != null">
        OldCode = #{oldcode,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        Name = #{name,jdbcType=VARCHAR},
      </if>
      <if test="ename != null">
        EName = #{ename,jdbcType=VARCHAR},
      </if>
      <if test="othername != null">
        OtherName = #{othername,jdbcType=VARCHAR},
      </if>
      <if test="brandid != null">
        BrandID = #{brandid,jdbcType=VARCHAR},
      </if>
      <if test="age != null">
        Age = #{age,jdbcType=CHAR},
      </if>
      <if test="season != null">
        Season = #{season,jdbcType=VARCHAR},
      </if>
      <if test="model != null">
        Model = #{model,jdbcType=VARCHAR},
      </if>
      <if test="brandserialid != null">
        BrandSerialID = #{brandserialid,jdbcType=VARCHAR},
      </if>
      <if test="kind != null">
        Kind = #{kind,jdbcType=VARCHAR},
      </if>
      <if test="producingareaid != null">
        ProducingAreaID = #{producingareaid,jdbcType=VARCHAR},
      </if>
      <if test="helpcode != null">
        HelpCode = #{helpcode,jdbcType=VARCHAR},
      </if>
      <if test="unit != null">
        Unit = #{unit,jdbcType=VARCHAR},
      </if>
      <if test="packunit != null">
        PackUnit = #{packunit,jdbcType=VARCHAR},
      </if>
      <if test="packsize != null">
        PackSize = #{packsize,jdbcType=INTEGER},
      </if>
      <if test="sex != null">
        Sex = #{sex,jdbcType=VARCHAR},
      </if>
      <if test="supplierid != null">
        SupplierID = #{supplierid,jdbcType=VARCHAR},
      </if>
      <if test="suppliercode != null">
        SupplierCode = #{suppliercode,jdbcType=VARCHAR},
      </if>
      <if test="purchaseprice != null">
        PurchasePrice = #{purchaseprice,jdbcType=DECIMAL},
      </if>
      <if test="salespoint != null">
        SalesPoint = #{salespoint,jdbcType=DECIMAL},
      </if>
      <if test="retailsales != null">
        RetailSales = #{retailsales,jdbcType=DECIMAL},
      </if>
      <if test="tradeprice != null">
        TradePrice = #{tradeprice,jdbcType=DECIMAL},
      </if>
      <if test="salesprice1 != null">
        SalesPrice1 = #{salesprice1,jdbcType=DECIMAL},
      </if>
      <if test="salesprice2 != null">
        SalesPrice2 = #{salesprice2,jdbcType=DECIMAL},
      </if>
      <if test="salesprice3 != null">
        SalesPrice3 = #{salesprice3,jdbcType=DECIMAL},
      </if>
      <if test="discount != null">
        Discount = #{discount,jdbcType=DECIMAL},
      </if>
      <if test="backflag != null">
        BackFlag = #{backflag,jdbcType=BIT},
      </if>
      <if test="discountflag != null">
        DiscountFlag = #{discountflag,jdbcType=BIT},
      </if>
      <if test="sameflag != null">
        SameFlag = #{sameflag,jdbcType=BIT},
      </if>
      <if test="presentflag != null">
        PresentFlag = #{presentflag,jdbcType=BIT},
      </if>
      <if test="costtype != null">
        CostType = #{costtype,jdbcType=VARCHAR},
      </if>
      <if test="topstock != null">
        TopStock = #{topstock,jdbcType=INTEGER},
      </if>
      <if test="bottomstock != null">
        BottomStock = #{bottomstock,jdbcType=INTEGER},
      </if>
      <if test="stocksubjectid != null">
        StockSubjectID = #{stocksubjectid,jdbcType=VARCHAR},
      </if>
      <if test="salessubjectid != null">
        SalesSubjectID = #{salessubjectid,jdbcType=VARCHAR},
      </if>
      <if test="costsubjectid != null">
        CostSubjectID = #{costsubjectid,jdbcType=VARCHAR},
      </if>
      <if test="begindate != null">
        BeginDate = #{begindate,jdbcType=TIMESTAMP},
      </if>
      <if test="enddate != null">
        EndDate = #{enddate,jdbcType=TIMESTAMP},
      </if>
      <if test="madedate != null">
        MadeDate = #{madedate,jdbcType=TIMESTAMP},
      </if>
      <if test="creator != null">
        Creator = #{creator,jdbcType=VARCHAR},
      </if>
      <if test="modifydate != null">
        ModifyDate = #{modifydate,jdbcType=TIMESTAMP},
      </if>
      <if test="editor != null">
        Editor = #{editor,jdbcType=VARCHAR},
      </if>
      <if test="salesdate != null">
        SalesDate = #{salesdate,jdbcType=TIMESTAMP},
      </if>
      <if test="purchaseddate != null">
        PurchasedDate = #{purchaseddate,jdbcType=TIMESTAMP},
      </if>
      <if test="lastpurchaseddate != null">
        LastPurchasedDate = #{lastpurchaseddate,jdbcType=TIMESTAMP},
      </if>
      <if test="exchangeenddate != null">
        ExchangeEndDate = #{exchangeenddate,jdbcType=TIMESTAMP},
      </if>
      <if test="memo != null">
        Memo = #{memo,jdbcType=VARCHAR},
      </if>
      <if test="stopflag != null">
        StopFlag = #{stopflag,jdbcType=BIT},
      </if>
      <if test="useflag != null">
        UseFlag = #{useflag,jdbcType=BIT},
      </if>
      <if test="goodsbalance != null">
        GoodsBalance = #{goodsbalance,jdbcType=INTEGER},
      </if>
      <if test="materialflag != null">
        MaterialFlag = #{materialflag,jdbcType=BIT},
      </if>
      <if test="backdatelimit != null">
        BackDateLimit = #{backdatelimit,jdbcType=INTEGER},
      </if>
      <if test="sendflag != null">
        SendFlag = #{sendflag,jdbcType=BIT},
      </if>
      <if test="costprice != null">
        CostPrice = #{costprice,jdbcType=DECIMAL},
      </if>
      <if test="washtype != null">
        WashType = #{washtype,jdbcType=VARCHAR},
      </if>
      <if test="paymenttype != null">
        PaymentType = #{paymenttype,jdbcType=VARCHAR},
      </if>
      <if test="hirerate != null">
        HireRate = #{hirerate,jdbcType=DECIMAL},
      </if>
      <if test="specialpriceflag != null">
        SpecialPriceFlag = #{specialpriceflag,jdbcType=BIT},
      </if>
      <if test="pricetype != null">
        PriceType = #{pricetype,jdbcType=VARCHAR},
      </if>
      <if test="priceint != null">
        PriceInt = #{priceint,jdbcType=INTEGER},
      </if>
      <if test="ordertargetqty != null">
        OrderTargetQty = #{ordertargetqty,jdbcType=INTEGER},
      </if>
      <if test="ordertargetant != null">
        OrderTargetAnt = #{ordertargetant,jdbcType=DECIMAL},
      </if>
      <if test="groupno != null">
        GroupNo = #{groupno,jdbcType=VARCHAR},
      </if>
      <if test="groupid != null">
        GroupID = #{groupid,jdbcType=VARCHAR},
      </if>
      <if test="salesprice4 != null">
        SalesPrice4 = #{salesprice4,jdbcType=DECIMAL},
      </if>
      <if test="salesprice5 != null">
        SalesPrice5 = #{salesprice5,jdbcType=DECIMAL},
      </if>
      <if test="salesprice6 != null">
        SalesPrice6 = #{salesprice6,jdbcType=DECIMAL},
      </if>
      <if test="salesprice7 != null">
        SalesPrice7 = #{salesprice7,jdbcType=DECIMAL},
      </if>
      <if test="salesprice8 != null">
        SalesPrice8 = #{salesprice8,jdbcType=DECIMAL},
      </if>
      <if test="vipprice != null">
        VIPPrice = #{vipprice,jdbcType=DECIMAL},
      </if>
      <if test="retailsales1 != null">
        RetailSales1 = #{retailsales1,jdbcType=DECIMAL},
      </if>
      <if test="retailsales2 != null">
        RetailSales2 = #{retailsales2,jdbcType=DECIMAL},
      </if>
      <if test="retailsales3 != null">
        RetailSales3 = #{retailsales3,jdbcType=DECIMAL},
      </if>
      <if test="retailsales4 != null">
        RetailSales4 = #{retailsales4,jdbcType=DECIMAL},
      </if>
      <if test="retailsales5 != null">
        RetailSales5 = #{retailsales5,jdbcType=DECIMAL},
      </if>
      <if test="retailsales6 != null">
        RetailSales6 = #{retailsales6,jdbcType=DECIMAL},
      </if>
      <if test="retailsales7 != null">
        RetailSales7 = #{retailsales7,jdbcType=DECIMAL},
      </if>
      <if test="retailsales8 != null">
        RetailSales8 = #{retailsales8,jdbcType=DECIMAL},
      </if>
      <if test="seller != null">
        Seller = #{seller,jdbcType=VARCHAR},
      </if>
      <if test="employeeid != null">
        EmployeeID = #{employeeid,jdbcType=VARCHAR},
      </if>
      <if test="packagecost != null">
        PackageCost = #{packagecost,jdbcType=DECIMAL},
      </if>
      <if test="developprofit != null">
        DevelopProfit = #{developprofit,jdbcType=DECIMAL},
      </if>
      <if test="designer != null">
        Designer = #{designer,jdbcType=VARCHAR},
      </if>
      <if test="grade != null">
        Grade = #{grade,jdbcType=VARCHAR},
      </if>
      <if test="performstandard != null">
        PerformStandard = #{performstandard,jdbcType=VARCHAR},
      </if>
      <if test="securitytype != null">
        SecurityType = #{securitytype,jdbcType=VARCHAR},
      </if>
      <if test="standardcode != null">
        StandardCode = #{standardcode,jdbcType=VARCHAR},
      </if>
      <if test="model1 != null">
        Model1 = #{model1,jdbcType=VARCHAR},
      </if>
      <if test="model2 != null">
        Model2 = #{model2,jdbcType=VARCHAR},
      </if>
      <if test="model3 != null">
        Model3 = #{model3,jdbcType=VARCHAR},
      </if>
      <if test="model4 != null">
        Model4 = #{model4,jdbcType=VARCHAR},
      </if>
      <if test="brandprintstyle != null">
        BrandPrintStyle = #{brandprintstyle,jdbcType=VARCHAR},
      </if>
      <if test="washprintstyle != null">
        WashPrintStyle = #{washprintstyle,jdbcType=VARCHAR},
      </if>
      <if test="salesmarket != null">
        SalesMarket = #{salesmarket,jdbcType=VARCHAR},
      </if>
      <if test="printflag != null">
        PrintFlag = #{printflag,jdbcType=BIT},
      </if>
      <if test="fob != null">
        FOB = #{fob,jdbcType=DECIMAL},
      </if>
      <if test="nondiscount != null">
        NonDiscount = #{nondiscount,jdbcType=BIT},
      </if>
      <if test="lowretailsales != null">
        LowRetailSales = #{lowretailsales,jdbcType=DECIMAL},
      </if>
      <if test="nonpoint != null">
        NonPoint = #{nonpoint,jdbcType=BIT},
      </if>
      <if test="brandoutlay != null">
        BrandOutlay = #{brandoutlay,jdbcType=DECIMAL},
      </if>
      <if test="bomflag != null">
        BOMFlag = #{bomflag,jdbcType=BIT},
      </if>
      <if test="model5 != null">
        Model5 = #{model5,jdbcType=VARCHAR},
      </if>
      <if test="model6 != null">
        Model6 = #{model6,jdbcType=VARCHAR},
      </if>
      <if test="model7 != null">
        Model7 = #{model7,jdbcType=VARCHAR},
      </if>
      <if test="model8 != null">
        Model8 = #{model8,jdbcType=VARCHAR},
      </if>
      <if test="model9 != null">
        Model9 = #{model9,jdbcType=VARCHAR},
      </if>
      <if test="audit != null">
        Audit = #{audit,jdbcType=VARCHAR},
      </if>
      <if test="goodsaudit != null">
        GoodsAudit = #{goodsaudit,jdbcType=VARCHAR},
      </if>
      <if test="goodsauditflag != null">
        GoodsAuditFlag = #{goodsauditflag,jdbcType=BIT},
      </if>
      <if test="goodsauditdate != null">
        GoodsAuditDate = #{goodsauditdate,jdbcType=TIMESTAMP},
      </if>
      <if test="style != null">
        Style = #{style,jdbcType=VARCHAR},
      </if>
      <if test="heel != null">
        Heel = #{heel,jdbcType=VARCHAR},
      </if>
      <if test="subtype != null">
        SubType = #{subtype,jdbcType=VARCHAR},
      </if>
      <if test="pointrate != null">
        PointRate = #{pointrate,jdbcType=DECIMAL},
      </if>
      <if test="initialprice != null">
        InitialPrice = #{initialprice,jdbcType=DECIMAL},
      </if>
      <if test="isnew != null">
        IsNew = #{isnew,jdbcType=BIT},
      </if>
      <if test="isonline != null">
        IsOnLine = #{isonline,jdbcType=BIT},
      </if>
      <if test="recommendonline != null">
        RecommendOnLine = #{recommendonline,jdbcType=BIT},
      </if>
      <if test="maxsizeno != null">
        MaxSizeNo = #{maxsizeno,jdbcType=INTEGER},
      </if>
      <if test="issample != null">
        IsSample = #{issample,jdbcType=BIT},
      </if>
      <if test="nonreturncash != null">
        NonReturnCash = #{nonreturncash,jdbcType=BIT},
      </if>
      <if test="nonexchangeprofit != null">
        NonExchangeProfit = #{nonexchangeprofit,jdbcType=BIT},
      </if>
      <if test="listingdate != null">
        ListingDate = #{listingdate,jdbcType=TIMESTAMP},
      </if>
      <if test="caneditpriceforpos != null">
        CanEditPriceForPOS = #{caneditpriceforpos,jdbcType=BIT},
      </if>
      <if test="codeEshop != null">
        Code_EShop = #{codeEshop,jdbcType=VARCHAR},
      </if>
      <if test="knotcode != null">
        KnotCode = #{knotcode,jdbcType=VARCHAR},
      </if>
      <if test="packtype != null">
        PackType = #{packtype,jdbcType=VARCHAR},
      </if>
      <if test="band != null">
        Band = #{band,jdbcType=VARCHAR},
      </if>
      <if test="wsupplierid != null">
        WSupplierID = #{wsupplierid,jdbcType=INTEGER},
      </if>
      <if test="descript != null">
        Descript = #{descript,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where GoodsID = #{goodsid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.fuxi.ws.data.entity.Goods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    update Goods
    set GoodsTypeID = #{goodstypeid,jdbcType=VARCHAR},
      Code = #{code,jdbcType=VARCHAR},
      OldCode = #{oldcode,jdbcType=VARCHAR},
      Name = #{name,jdbcType=VARCHAR},
      EName = #{ename,jdbcType=VARCHAR},
      OtherName = #{othername,jdbcType=VARCHAR},
      BrandID = #{brandid,jdbcType=VARCHAR},
      Age = #{age,jdbcType=CHAR},
      Season = #{season,jdbcType=VARCHAR},
      Model = #{model,jdbcType=VARCHAR},
      BrandSerialID = #{brandserialid,jdbcType=VARCHAR},
      Kind = #{kind,jdbcType=VARCHAR},
      ProducingAreaID = #{producingareaid,jdbcType=VARCHAR},
      HelpCode = #{helpcode,jdbcType=VARCHAR},
      Unit = #{unit,jdbcType=VARCHAR},
      PackUnit = #{packunit,jdbcType=VARCHAR},
      PackSize = #{packsize,jdbcType=INTEGER},
      Sex = #{sex,jdbcType=VARCHAR},
      SupplierID = #{supplierid,jdbcType=VARCHAR},
      SupplierCode = #{suppliercode,jdbcType=VARCHAR},
      PurchasePrice = #{purchaseprice,jdbcType=DECIMAL},
      SalesPoint = #{salespoint,jdbcType=DECIMAL},
      RetailSales = #{retailsales,jdbcType=DECIMAL},
      TradePrice = #{tradeprice,jdbcType=DECIMAL},
      SalesPrice1 = #{salesprice1,jdbcType=DECIMAL},
      SalesPrice2 = #{salesprice2,jdbcType=DECIMAL},
      SalesPrice3 = #{salesprice3,jdbcType=DECIMAL},
      Discount = #{discount,jdbcType=DECIMAL},
      BackFlag = #{backflag,jdbcType=BIT},
      DiscountFlag = #{discountflag,jdbcType=BIT},
      SameFlag = #{sameflag,jdbcType=BIT},
      PresentFlag = #{presentflag,jdbcType=BIT},
      CostType = #{costtype,jdbcType=VARCHAR},
      TopStock = #{topstock,jdbcType=INTEGER},
      BottomStock = #{bottomstock,jdbcType=INTEGER},
      StockSubjectID = #{stocksubjectid,jdbcType=VARCHAR},
      SalesSubjectID = #{salessubjectid,jdbcType=VARCHAR},
      CostSubjectID = #{costsubjectid,jdbcType=VARCHAR},
      BeginDate = #{begindate,jdbcType=TIMESTAMP},
      EndDate = #{enddate,jdbcType=TIMESTAMP},
      MadeDate = #{madedate,jdbcType=TIMESTAMP},
      Creator = #{creator,jdbcType=VARCHAR},
      ModifyDate = #{modifydate,jdbcType=TIMESTAMP},
      Editor = #{editor,jdbcType=VARCHAR},
      SalesDate = #{salesdate,jdbcType=TIMESTAMP},
      PurchasedDate = #{purchaseddate,jdbcType=TIMESTAMP},
      LastPurchasedDate = #{lastpurchaseddate,jdbcType=TIMESTAMP},
      ExchangeEndDate = #{exchangeenddate,jdbcType=TIMESTAMP},
      Memo = #{memo,jdbcType=VARCHAR},
      StopFlag = #{stopflag,jdbcType=BIT},
      UseFlag = #{useflag,jdbcType=BIT},
      GoodsBalance = #{goodsbalance,jdbcType=INTEGER},
      MaterialFlag = #{materialflag,jdbcType=BIT},
      BackDateLimit = #{backdatelimit,jdbcType=INTEGER},
      SendFlag = #{sendflag,jdbcType=BIT},
      CostPrice = #{costprice,jdbcType=DECIMAL},
      WashType = #{washtype,jdbcType=VARCHAR},
      PaymentType = #{paymenttype,jdbcType=VARCHAR},
      HireRate = #{hirerate,jdbcType=DECIMAL},
      SpecialPriceFlag = #{specialpriceflag,jdbcType=BIT},
      PriceType = #{pricetype,jdbcType=VARCHAR},
      PriceInt = #{priceint,jdbcType=INTEGER},
      OrderTargetQty = #{ordertargetqty,jdbcType=INTEGER},
      OrderTargetAnt = #{ordertargetant,jdbcType=DECIMAL},
      GroupNo = #{groupno,jdbcType=VARCHAR},
      GroupID = #{groupid,jdbcType=VARCHAR},
      SalesPrice4 = #{salesprice4,jdbcType=DECIMAL},
      SalesPrice5 = #{salesprice5,jdbcType=DECIMAL},
      SalesPrice6 = #{salesprice6,jdbcType=DECIMAL},
      SalesPrice7 = #{salesprice7,jdbcType=DECIMAL},
      SalesPrice8 = #{salesprice8,jdbcType=DECIMAL},
      VIPPrice = #{vipprice,jdbcType=DECIMAL},
      RetailSales1 = #{retailsales1,jdbcType=DECIMAL},
      RetailSales2 = #{retailsales2,jdbcType=DECIMAL},
      RetailSales3 = #{retailsales3,jdbcType=DECIMAL},
      RetailSales4 = #{retailsales4,jdbcType=DECIMAL},
      RetailSales5 = #{retailsales5,jdbcType=DECIMAL},
      RetailSales6 = #{retailsales6,jdbcType=DECIMAL},
      RetailSales7 = #{retailsales7,jdbcType=DECIMAL},
      RetailSales8 = #{retailsales8,jdbcType=DECIMAL},
      Seller = #{seller,jdbcType=VARCHAR},
      EmployeeID = #{employeeid,jdbcType=VARCHAR},
      PackageCost = #{packagecost,jdbcType=DECIMAL},
      DevelopProfit = #{developprofit,jdbcType=DECIMAL},
      Designer = #{designer,jdbcType=VARCHAR},
      Grade = #{grade,jdbcType=VARCHAR},
      PerformStandard = #{performstandard,jdbcType=VARCHAR},
      SecurityType = #{securitytype,jdbcType=VARCHAR},
      StandardCode = #{standardcode,jdbcType=VARCHAR},
      Model1 = #{model1,jdbcType=VARCHAR},
      Model2 = #{model2,jdbcType=VARCHAR},
      Model3 = #{model3,jdbcType=VARCHAR},
      Model4 = #{model4,jdbcType=VARCHAR},
      BrandPrintStyle = #{brandprintstyle,jdbcType=VARCHAR},
      WashPrintStyle = #{washprintstyle,jdbcType=VARCHAR},
      SalesMarket = #{salesmarket,jdbcType=VARCHAR},
      PrintFlag = #{printflag,jdbcType=BIT},
      FOB = #{fob,jdbcType=DECIMAL},
      NonDiscount = #{nondiscount,jdbcType=BIT},
      LowRetailSales = #{lowretailsales,jdbcType=DECIMAL},
      NonPoint = #{nonpoint,jdbcType=BIT},
      BrandOutlay = #{brandoutlay,jdbcType=DECIMAL},
      BOMFlag = #{bomflag,jdbcType=BIT},
      Model5 = #{model5,jdbcType=VARCHAR},
      Model6 = #{model6,jdbcType=VARCHAR},
      Model7 = #{model7,jdbcType=VARCHAR},
      Model8 = #{model8,jdbcType=VARCHAR},
      Model9 = #{model9,jdbcType=VARCHAR},
      Audit = #{audit,jdbcType=VARCHAR},
      GoodsAudit = #{goodsaudit,jdbcType=VARCHAR},
      GoodsAuditFlag = #{goodsauditflag,jdbcType=BIT},
      GoodsAuditDate = #{goodsauditdate,jdbcType=TIMESTAMP},
      Style = #{style,jdbcType=VARCHAR},
      Heel = #{heel,jdbcType=VARCHAR},
      SubType = #{subtype,jdbcType=VARCHAR},
      PointRate = #{pointrate,jdbcType=DECIMAL},
      InitialPrice = #{initialprice,jdbcType=DECIMAL},
      IsNew = #{isnew,jdbcType=BIT},
      IsOnLine = #{isonline,jdbcType=BIT},
      RecommendOnLine = #{recommendonline,jdbcType=BIT},
      MaxSizeNo = #{maxsizeno,jdbcType=INTEGER},
      IsSample = #{issample,jdbcType=BIT},
      NonReturnCash = #{nonreturncash,jdbcType=BIT},
      NonExchangeProfit = #{nonexchangeprofit,jdbcType=BIT},
      ListingDate = #{listingdate,jdbcType=TIMESTAMP},
      CanEditPriceForPOS = #{caneditpriceforpos,jdbcType=BIT},
      Code_EShop = #{codeEshop,jdbcType=VARCHAR},
      KnotCode = #{knotcode,jdbcType=VARCHAR},
      PackType = #{packtype,jdbcType=VARCHAR},
      Band = #{band,jdbcType=VARCHAR},
      WSupplierID = #{wsupplierid,jdbcType=INTEGER},
      Descript = #{descript,jdbcType=LONGVARCHAR}
    where GoodsID = #{goodsid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.fuxi.ws.data.entity.Goods">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Jan 18 16:21:04 CST 2017.
    -->
    update Goods
    set GoodsTypeID = #{goodstypeid,jdbcType=VARCHAR},
      Code = #{code,jdbcType=VARCHAR},
      OldCode = #{oldcode,jdbcType=VARCHAR},
      Name = #{name,jdbcType=VARCHAR},
      EName = #{ename,jdbcType=VARCHAR},
      OtherName = #{othername,jdbcType=VARCHAR},
      BrandID = #{brandid,jdbcType=VARCHAR},
      Age = #{age,jdbcType=CHAR},
      Season = #{season,jdbcType=VARCHAR},
      Model = #{model,jdbcType=VARCHAR},
      BrandSerialID = #{brandserialid,jdbcType=VARCHAR},
      Kind = #{kind,jdbcType=VARCHAR},
      ProducingAreaID = #{producingareaid,jdbcType=VARCHAR},
      HelpCode = #{helpcode,jdbcType=VARCHAR},
      Unit = #{unit,jdbcType=VARCHAR},
      PackUnit = #{packunit,jdbcType=VARCHAR},
      PackSize = #{packsize,jdbcType=INTEGER},
      Sex = #{sex,jdbcType=VARCHAR},
      SupplierID = #{supplierid,jdbcType=VARCHAR},
      SupplierCode = #{suppliercode,jdbcType=VARCHAR},
      PurchasePrice = #{purchaseprice,jdbcType=DECIMAL},
      SalesPoint = #{salespoint,jdbcType=DECIMAL},
      RetailSales = #{retailsales,jdbcType=DECIMAL},
      TradePrice = #{tradeprice,jdbcType=DECIMAL},
      SalesPrice1 = #{salesprice1,jdbcType=DECIMAL},
      SalesPrice2 = #{salesprice2,jdbcType=DECIMAL},
      SalesPrice3 = #{salesprice3,jdbcType=DECIMAL},
      Discount = #{discount,jdbcType=DECIMAL},
      BackFlag = #{backflag,jdbcType=BIT},
      DiscountFlag = #{discountflag,jdbcType=BIT},
      SameFlag = #{sameflag,jdbcType=BIT},
      PresentFlag = #{presentflag,jdbcType=BIT},
      CostType = #{costtype,jdbcType=VARCHAR},
      TopStock = #{topstock,jdbcType=INTEGER},
      BottomStock = #{bottomstock,jdbcType=INTEGER},
      StockSubjectID = #{stocksubjectid,jdbcType=VARCHAR},
      SalesSubjectID = #{salessubjectid,jdbcType=VARCHAR},
      CostSubjectID = #{costsubjectid,jdbcType=VARCHAR},
      BeginDate = #{begindate,jdbcType=TIMESTAMP},
      EndDate = #{enddate,jdbcType=TIMESTAMP},
      MadeDate = #{madedate,jdbcType=TIMESTAMP},
      Creator = #{creator,jdbcType=VARCHAR},
      ModifyDate = #{modifydate,jdbcType=TIMESTAMP},
      Editor = #{editor,jdbcType=VARCHAR},
      SalesDate = #{salesdate,jdbcType=TIMESTAMP},
      PurchasedDate = #{purchaseddate,jdbcType=TIMESTAMP},
      LastPurchasedDate = #{lastpurchaseddate,jdbcType=TIMESTAMP},
      ExchangeEndDate = #{exchangeenddate,jdbcType=TIMESTAMP},
      Memo = #{memo,jdbcType=VARCHAR},
      StopFlag = #{stopflag,jdbcType=BIT},
      UseFlag = #{useflag,jdbcType=BIT},
      GoodsBalance = #{goodsbalance,jdbcType=INTEGER},
      MaterialFlag = #{materialflag,jdbcType=BIT},
      BackDateLimit = #{backdatelimit,jdbcType=INTEGER},
      SendFlag = #{sendflag,jdbcType=BIT},
      CostPrice = #{costprice,jdbcType=DECIMAL},
      WashType = #{washtype,jdbcType=VARCHAR},
      PaymentType = #{paymenttype,jdbcType=VARCHAR},
      HireRate = #{hirerate,jdbcType=DECIMAL},
      SpecialPriceFlag = #{specialpriceflag,jdbcType=BIT},
      PriceType = #{pricetype,jdbcType=VARCHAR},
      PriceInt = #{priceint,jdbcType=INTEGER},
      OrderTargetQty = #{ordertargetqty,jdbcType=INTEGER},
      OrderTargetAnt = #{ordertargetant,jdbcType=DECIMAL},
      GroupNo = #{groupno,jdbcType=VARCHAR},
      GroupID = #{groupid,jdbcType=VARCHAR},
      SalesPrice4 = #{salesprice4,jdbcType=DECIMAL},
      SalesPrice5 = #{salesprice5,jdbcType=DECIMAL},
      SalesPrice6 = #{salesprice6,jdbcType=DECIMAL},
      SalesPrice7 = #{salesprice7,jdbcType=DECIMAL},
      SalesPrice8 = #{salesprice8,jdbcType=DECIMAL},
      VIPPrice = #{vipprice,jdbcType=DECIMAL},
      RetailSales1 = #{retailsales1,jdbcType=DECIMAL},
      RetailSales2 = #{retailsales2,jdbcType=DECIMAL},
      RetailSales3 = #{retailsales3,jdbcType=DECIMAL},
      RetailSales4 = #{retailsales4,jdbcType=DECIMAL},
      RetailSales5 = #{retailsales5,jdbcType=DECIMAL},
      RetailSales6 = #{retailsales6,jdbcType=DECIMAL},
      RetailSales7 = #{retailsales7,jdbcType=DECIMAL},
      RetailSales8 = #{retailsales8,jdbcType=DECIMAL},
      Seller = #{seller,jdbcType=VARCHAR},
      EmployeeID = #{employeeid,jdbcType=VARCHAR},
      PackageCost = #{packagecost,jdbcType=DECIMAL},
      DevelopProfit = #{developprofit,jdbcType=DECIMAL},
      Designer = #{designer,jdbcType=VARCHAR},
      Grade = #{grade,jdbcType=VARCHAR},
      PerformStandard = #{performstandard,jdbcType=VARCHAR},
      SecurityType = #{securitytype,jdbcType=VARCHAR},
      StandardCode = #{standardcode,jdbcType=VARCHAR},
      Model1 = #{model1,jdbcType=VARCHAR},
      Model2 = #{model2,jdbcType=VARCHAR},
      Model3 = #{model3,jdbcType=VARCHAR},
      Model4 = #{model4,jdbcType=VARCHAR},
      BrandPrintStyle = #{brandprintstyle,jdbcType=VARCHAR},
      WashPrintStyle = #{washprintstyle,jdbcType=VARCHAR},
      SalesMarket = #{salesmarket,jdbcType=VARCHAR},
      PrintFlag = #{printflag,jdbcType=BIT},
      FOB = #{fob,jdbcType=DECIMAL},
      NonDiscount = #{nondiscount,jdbcType=BIT},
      LowRetailSales = #{lowretailsales,jdbcType=DECIMAL},
      NonPoint = #{nonpoint,jdbcType=BIT},
      BrandOutlay = #{brandoutlay,jdbcType=DECIMAL},
      BOMFlag = #{bomflag,jdbcType=BIT},
      Model5 = #{model5,jdbcType=VARCHAR},
      Model6 = #{model6,jdbcType=VARCHAR},
      Model7 = #{model7,jdbcType=VARCHAR},
      Model8 = #{model8,jdbcType=VARCHAR},
      Model9 = #{model9,jdbcType=VARCHAR},
      Audit = #{audit,jdbcType=VARCHAR},
      GoodsAudit = #{goodsaudit,jdbcType=VARCHAR},
      GoodsAuditFlag = #{goodsauditflag,jdbcType=BIT},
      GoodsAuditDate = #{goodsauditdate,jdbcType=TIMESTAMP},
      Style = #{style,jdbcType=VARCHAR},
      Heel = #{heel,jdbcType=VARCHAR},
      SubType = #{subtype,jdbcType=VARCHAR},
      PointRate = #{pointrate,jdbcType=DECIMAL},
      InitialPrice = #{initialprice,jdbcType=DECIMAL},
      IsNew = #{isnew,jdbcType=BIT},
      IsOnLine = #{isonline,jdbcType=BIT},
      RecommendOnLine = #{recommendonline,jdbcType=BIT},
      MaxSizeNo = #{maxsizeno,jdbcType=INTEGER},
      IsSample = #{issample,jdbcType=BIT},
      NonReturnCash = #{nonreturncash,jdbcType=BIT},
      NonExchangeProfit = #{nonexchangeprofit,jdbcType=BIT},
      ListingDate = #{listingdate,jdbcType=TIMESTAMP},
      CanEditPriceForPOS = #{caneditpriceforpos,jdbcType=BIT},
      Code_EShop = #{codeEshop,jdbcType=VARCHAR},
      KnotCode = #{knotcode,jdbcType=VARCHAR},
      PackType = #{packtype,jdbcType=VARCHAR},
      Band = #{band,jdbcType=VARCHAR},
      WSupplierID = #{wsupplierid,jdbcType=INTEGER}
    where GoodsID = #{goodsid,jdbcType=VARCHAR}
  </update>

	<insert id="insertGoods" parameterType="com.fuxi.ws.data.entity.Goods">
		insert into Goods
		(GoodsID, GoodsTypeID, Code,
		Name,VIPPrice, RetailSales,
		UseFlag
		)
		values
		(#{goodsid,jdbcType=VARCHAR},
		#{goodstypeid,jdbcType=VARCHAR},
		#{code,jdbcType=VARCHAR},
		#{name,jdbcType=VARCHAR},
		#{vipprice,jdbcType=DECIMAL},
		#{retailsales,jdbcType=DECIMAL},
		#{useflag,jdbcType=BIT}
		)
	</insert>

	<!-- 商品尺码 -->
	<select id="sizeList" resultType="java.util.LinkedHashMap">
		<!-- select b.* from Goods a join SizeGroupSize b on a.GroupID=b.SizeGroupID 
			where a.GoodsID=#{ goodsid } -->
		select b.* from W_Store a with(nolock) 
		join Size b with(nolock) on a.SizeID=b.SizeID
		where
		a.GoodsID=#{ goodsid }
	</select>

	<!-- 尺码名称 -->
	<select id="sizeName" resultType="java.lang.String">
		select size from Goods a
		join
		SizeGroupSize b on a.GroupID=b.SizeGroupID
		where
		a.GoodsID=#{ goodsid }
		and b.SizeID=#{ sizeid }
	</select>
	
	<update id="updateBySelective" parameterType="com.fuxi.ws.data.entity.Goods">    
    update Goods
    <set>
      <if test="goodstypeid != null">
        GoodsTypeID = #{goodstypeid,jdbcType=VARCHAR},
      </if>
      <if test="code != null">
        Code = #{code,jdbcType=VARCHAR},
      </if>
      <if test="wsupplierid != null">
        WSupplierID = #{wsupplierid,jdbcType=INTEGER},
      </if>
    </set>
    where GoodsID = #{goodsid,jdbcType=VARCHAR}
  </update>
</mapper>