|
@@ -7,158 +7,97 @@
|
|
|
</resultMap>
|
|
|
<sql id="productColumns">
|
|
|
a.productID AS "id",
|
|
|
- a.productID AS "productID",
|
|
|
- a.brandID AS "brandID",
|
|
|
+ a.productID AS "productID",
|
|
|
+ a.brandID AS "brandID",
|
|
|
ifnull(a.bigTypeID,0) AS "bigTypeID",
|
|
|
- ifnull(a.smallTypeID,0) AS "smallTypeID",
|
|
|
- ifnull(a.tinyTypeID,0) AS "tinyTypeID",
|
|
|
- a.productCategory AS "productCategory",
|
|
|
- a.selfTypeID AS "selfTypeID",
|
|
|
- a.preferredFlag AS "preferredFlag",
|
|
|
- a.shopID AS "shopID",
|
|
|
- a.name AS "name",
|
|
|
- a.searchKey AS "searchKey",
|
|
|
- a.combinationID AS "combinationID",
|
|
|
- a.productRemarks AS "productRemarks",
|
|
|
- a.normalPrice AS "normalPrice",
|
|
|
- a.price AS "price",
|
|
|
- a.highestUserLevelPrice AS "highestUserLevelPrice",
|
|
|
- a.lowestUserLevelPrice AS "lowestUserLevelPrice",
|
|
|
- a.lowestUserLevelID AS "lowestUserLevelID",
|
|
|
- a.price0 AS "price0",
|
|
|
- a.price0Text AS "price0Text",
|
|
|
- a.price0TextFlag AS "price0TextFlag",
|
|
|
- a.price1 AS "price1",
|
|
|
- a.price1Text AS "price1Text",
|
|
|
- a.price1TextFlag AS "price1TextFlag",
|
|
|
- a.price8 AS "price8",
|
|
|
- a.price8Text AS "price8Text",
|
|
|
- a.price8TextFlag AS "price8TextFlag",
|
|
|
- a.ladderPriceFlag AS "ladderPriceFlag",
|
|
|
- a.price2 AS "price2",
|
|
|
- a.price3 AS "price3",
|
|
|
- a.price4 AS "price4",
|
|
|
- a.price5 AS "price5",
|
|
|
- a.price6 AS "price6",
|
|
|
- a.price7 AS "price7",
|
|
|
- a.fee AS "fee",
|
|
|
- a.stock AS "stock",
|
|
|
- a.hasSkuFlag AS "hasSkuFlag",
|
|
|
- a.mainImage AS "mainImage",
|
|
|
- a.propertiesInfo AS "propertiesInfo",
|
|
|
- a.addTime AS "addTime",
|
|
|
- a.updateTime AS "updateTime",
|
|
|
- a.sellNumber AS "sellNumber",
|
|
|
- a.weekSellNumber AS "weekSellNumber",
|
|
|
- a.beforeValidFlag AS "beforeValidFlag",
|
|
|
- a.validFlag AS "validFlag",
|
|
|
- a.favoriteTimes AS "favoriteTimes",
|
|
|
- a.commentScore AS "commentScore",
|
|
|
- a.commentTimes AS "commentTimes",
|
|
|
- a.selfRecommendFlag AS "selfRecommendFlag",
|
|
|
- a.sysRecommendFlag AS "sysRecommendFlag",
|
|
|
- a.sortIndex AS "sortIndex",
|
|
|
- a.featuredFlag AS "featuredFlag",
|
|
|
- a.featuredSortIndex AS "featuredSortIndex",
|
|
|
- a.productCode AS "productCode",
|
|
|
- a.rate1 AS "rate1",
|
|
|
- a.rate2 AS "rate2",
|
|
|
- a.unit AS "unit",
|
|
|
- a.synToERPFlag AS "synToERPFlag",
|
|
|
- a.allAreaFlag AS "allAreaFlag",
|
|
|
- a.provinceIDs AS "provinceIDs",
|
|
|
- a.serviceNumber AS "serviceNumber",
|
|
|
- a.maxBuyNumber AS "maxBuyNumber",
|
|
|
- a.virtualFlag AS "virtualFlag",
|
|
|
- a.minBuyNumber AS "minBuyNumber",
|
|
|
- a.packageCount AS "packageCount",
|
|
|
- a.byFlag AS "byFlag",
|
|
|
- a.normalProductFlag AS "normalProductFlag",
|
|
|
- a.wholeSaleProductFlag AS "wholeSaleProductFlag",
|
|
|
- a.promotionProductFlag AS "promotionProductFlag",
|
|
|
- a.groupBuyProductFlag AS "groupBuyProductFlag",
|
|
|
- a.step AS "step",
|
|
|
- a.speCommisionFlag AS "speCommisionFlag",
|
|
|
- a.speCommision AS "speCommision",
|
|
|
- a.videourl AS "videourl",
|
|
|
- a.props AS "props",
|
|
|
- a.providers AS "providers",
|
|
|
- a.serviceCommissionRatio AS "serviceCommissionRatio",
|
|
|
- a.reCommissionRatio AS "reCommissionRatio",
|
|
|
- a.pushToERPName AS "pushToERPName",
|
|
|
- a.prodBeans AS "prodBeans",
|
|
|
- a.useBeansFlag AS "useBeansFlag",
|
|
|
- a.privateFlag AS "privateFlag",
|
|
|
- a.invisibleServiceProviderIDs AS "invisibleServiceProviderIDs",
|
|
|
- a.displayOnCRMFlag AS "displayOnCRMFlag",
|
|
|
- a.needServiceFlag AS "needServiceFlag",
|
|
|
- a.actStatus AS "actStatus",
|
|
|
- a.actPrice0 AS "actPrice0",
|
|
|
- a.actPrice1 AS "actPrice1",
|
|
|
- a.actPrice2 AS "actPrice2",
|
|
|
- a.actPrice3 AS "actPrice3",
|
|
|
- a.actPrice4 AS "actPrice4",
|
|
|
- a.actPrice5 AS "actPrice5",
|
|
|
- a.actPrice6 AS "actPrice6",
|
|
|
- a.actPrice7 AS "actPrice7",
|
|
|
- a.beginTime AS "beginTime",
|
|
|
- a.endTime AS "endTime",
|
|
|
- a.actFlag AS "actFlag",
|
|
|
- a.actType AS "actType",
|
|
|
- a.actFullReduceAmount AS "actFullReduceAmount",
|
|
|
- a.actReduceAmount AS "actReduceAmount",
|
|
|
- a.actFullGiftAmount AS "actFullGiftAmount",
|
|
|
- a.actBuyGiftNum AS "actBuyGiftNum",
|
|
|
- a.onlineTime AS "onlineTime",
|
|
|
- a.downlineTime AS "downlineTime",
|
|
|
- a.shopIndexModuleID AS "shopIndexModuleID",
|
|
|
- a.freePostFlag AS "freePostFlag",
|
|
|
- a.crmBigTypeId AS "crmBigTypeId",
|
|
|
- a.crmSmallTypeId AS "crmSmallTypeId",
|
|
|
- a.costPrice AS "costPrice",
|
|
|
- a.costProportional AS "costProportional",
|
|
|
- a.costCheckFlag AS "costCheckFlag",
|
|
|
- a.precisehKey AS "precisehKey",
|
|
|
- a.docBoost AS "docBoost",
|
|
|
- a.cmbeanFlag AS "cmbeanFlag",
|
|
|
- a.cmbeanPrice AS "cmbeanPrice",
|
|
|
- a.cmbeanSort AS "cmbeanSort",
|
|
|
- s.name AS "shopName",
|
|
|
- a.actSort AS "actSort",
|
|
|
- a.actCreateTime AS "actCreateTime",
|
|
|
- a.recommendType AS "recommendType",
|
|
|
- a.aliasName as "aliasName",
|
|
|
- a.price0Grade as "price0Grade",
|
|
|
- a.price1Grade as "price1Grade",
|
|
|
- a.price8Grade as "price8Grade",
|
|
|
- a.visibility as "visibility",
|
|
|
- a.surplusTime as "surplusTime",
|
|
|
- a.productType as "productType",
|
|
|
- a.qualificationImg as "qualificationImg",
|
|
|
- a.includedTax as "includedTax",
|
|
|
- a.invoiceType as "invoiceType",
|
|
|
- a.taxPoint as "taxPoint",
|
|
|
- a.supplierTaxPoint as "supplierTaxPoint",
|
|
|
- a.priceType as "priceType",
|
|
|
- a.tags as "tags",
|
|
|
- a.machineType as "machineType",
|
|
|
- a.commodityType as "commodityType",
|
|
|
- a.trainingMethod as "trainingMethod",
|
|
|
- a.trainingType as "trainingType",
|
|
|
- a.trainingFee as "trainingFee",
|
|
|
- cshd.secondHandType as "secondHandType",
|
|
|
- cshd.instrumentType as "instrumentType",
|
|
|
- cshd.sold as "sold",
|
|
|
- cshd.payStatus as "payStatus",
|
|
|
- cshd.contactName as "contactName",
|
|
|
- cshd.originalPrice as "originalPrice",
|
|
|
- cshd.submitDate AS "submitDate",
|
|
|
- cshd.reviewedDate AS "reviewedDate",
|
|
|
- cshd.onLineDate AS "onLineDate",
|
|
|
- cshd.brandName AS "otherBrandName",
|
|
|
- cshd.publisher AS "publisher",
|
|
|
- cshd.source AS "source",
|
|
|
- cshd.dockingPeopleName AS "dockingPeopleName",
|
|
|
+ ifnull(a.smallTypeID,0) AS "smallTypeID",
|
|
|
+ ifnull(a.tinyTypeID,0) AS "tinyTypeID",
|
|
|
+ a.productCategory AS "productCategory",
|
|
|
+ a.selfTypeID AS "selfTypeID",
|
|
|
+ a.preferredFlag AS "preferredFlag",
|
|
|
+ a.shopID AS "shopID",
|
|
|
+ a.name AS "name",
|
|
|
+ a.searchKey AS "searchKey",
|
|
|
+ a.combinationID AS "combinationID",
|
|
|
+ a.productRemarks AS "productRemarks",
|
|
|
+ a.normalPrice AS "normalPrice",
|
|
|
+ a.price AS "price",
|
|
|
+ a.priceFlag AS "priceFlag",
|
|
|
+ a.beautyActFlag AS "beautyActFlag",
|
|
|
+ a.ladderPriceFlag AS "ladderPriceFlag",
|
|
|
+ a.stock AS "stock",
|
|
|
+ a.hasSkuFlag AS "hasSkuFlag",
|
|
|
+ a.mainImage AS "mainImage",
|
|
|
+ a.propertiesInfo AS "propertiesInfo",
|
|
|
+ a.addTime AS "addTime",
|
|
|
+ a.updateTime AS "updateTime",
|
|
|
+ a.sellNumber AS "sellNumber",
|
|
|
+ a.weekSellNumber AS "weekSellNumber",
|
|
|
+ a.beforeValidFlag AS "beforeValidFlag",
|
|
|
+ a.validFlag AS "validFlag",
|
|
|
+ a.favoriteTimes AS "favoriteTimes",
|
|
|
+ a.commentScore AS "commentScore",
|
|
|
+ a.commentTimes AS "commentTimes",
|
|
|
+ a.selfRecommendFlag AS "selfRecommendFlag",
|
|
|
+ a.sysRecommendFlag AS "sysRecommendFlag",
|
|
|
+ a.sortIndex AS "sortIndex",
|
|
|
+ a.featuredFlag AS "featuredFlag",
|
|
|
+ a.featuredSortIndex AS "featuredSortIndex",
|
|
|
+ a.productCode AS "productCode",
|
|
|
+ a.unit AS "unit",
|
|
|
+ a.synToERPFlag AS "synToERPFlag",
|
|
|
+ a.allAreaFlag AS "allAreaFlag",
|
|
|
+ a.provinceIDs AS "provinceIDs",
|
|
|
+ a.serviceNumber AS "serviceNumber",
|
|
|
+ a.maxBuyNumber AS "maxBuyNumber",
|
|
|
+ a.minBuyNumber AS "minBuyNumber",
|
|
|
+ a.packageCount AS "packageCount",
|
|
|
+ a.byFlag AS "byFlag",
|
|
|
+ a.normalProductFlag AS "normalProductFlag",
|
|
|
+ a.wholeSaleProductFlag AS "wholeSaleProductFlag",
|
|
|
+ a.promotionProductFlag AS "promotionProductFlag",
|
|
|
+ a.groupBuyProductFlag AS "groupBuyProductFlag",
|
|
|
+ a.step AS "step",
|
|
|
+ a.actStatus AS "actStatus",
|
|
|
+ a.actFlag AS "actFlag",
|
|
|
+ a.actType AS "actType",
|
|
|
+ a.onlineTime AS "onlineTime",
|
|
|
+ a.downlineTime AS "downlineTime",
|
|
|
+ a.freePostFlag AS "freePostFlag",
|
|
|
+ a.costPrice AS "costPrice",
|
|
|
+ a.costProportional AS "costProportional",
|
|
|
+ a.costCheckFlag AS "costCheckFlag",
|
|
|
+ a.precisehKey AS "precisehKey",
|
|
|
+ s.name AS "shopName",
|
|
|
+ a.actSort AS "actSort",
|
|
|
+ a.recommendType AS "recommendType",
|
|
|
+ a.aliasName as "aliasName",
|
|
|
+ a.visibility as "visibility",
|
|
|
+ a.productType as "productType",
|
|
|
+ a.qualificationImg as "qualificationImg",
|
|
|
+ a.includedTax as "includedTax",
|
|
|
+ a.invoiceType as "invoiceType",
|
|
|
+ a.taxPoint as "taxPoint",
|
|
|
+ a.supplierTaxPoint as "supplierTaxPoint",
|
|
|
+ a.tags as "tags",
|
|
|
+ a.machineType as "machineType",
|
|
|
+ a.commodityType as "commodityType",
|
|
|
+ a.trainingMethod as "trainingMethod",
|
|
|
+ a.trainingType as "trainingType",
|
|
|
+ a.trainingFee as "trainingFee",
|
|
|
+ cshd.secondHandType as "secondHandType",
|
|
|
+ cshd.instrumentType as "instrumentType",
|
|
|
+ cshd.sold as "sold",
|
|
|
+ cshd.payStatus as "payStatus",
|
|
|
+ cshd.contactName as "contactName",
|
|
|
+ cshd.originalPrice as "originalPrice",
|
|
|
+ cshd.submitDate AS "submitDate",
|
|
|
+ cshd.reviewedDate AS "reviewedDate",
|
|
|
+ cshd.onLineDate AS "onLineDate",
|
|
|
+ cshd.brandName AS "otherBrandName",
|
|
|
+ cshd.publisher AS "publisher",
|
|
|
+ cshd.source AS "source",
|
|
|
+ cshd.dockingPeopleName AS "dockingPeopleName",
|
|
|
cb.name as "brandName",
|
|
|
if(csp.id is not null,1,0) as "svipFlag"
|
|
|
</sql>
|
|
@@ -250,9 +189,6 @@
|
|
|
<if test="dbName == 'mssql'">'%'+#{shopName}+'%'</if>
|
|
|
<if test="dbName == 'mysql'">concat('%',#{shopName},'%')</if>
|
|
|
</if>
|
|
|
- <if test="cmbeanFlag != null and cmbeanFlag != ''">
|
|
|
- AND a.cmbeanFlag = #{cmbeanFlag}
|
|
|
- </if>
|
|
|
<if test="validFlag !=null and validFlag !=''">
|
|
|
AND a.validFlag=#{validFlag}
|
|
|
</if>
|
|
@@ -262,18 +198,6 @@
|
|
|
<if test="actType !=null and actType !=''">
|
|
|
AND a.actType=#{actType}
|
|
|
</if>
|
|
|
- <if test="speCommisionFlag !=null and speCommisionFlag !=''">
|
|
|
- AND a.speCommisionFlag=#{speCommisionFlag}
|
|
|
- </if>
|
|
|
- <if test="displayOnCRMFlag !=null and displayOnCRMFlag !=''">
|
|
|
- AND a.displayOnCRMFlag=#{displayOnCRMFlag}
|
|
|
- </if>
|
|
|
- <if test="crmBigTypeId !=null and crmBigTypeId !=''">
|
|
|
- AND a.crmBigTypeId=#{crmBigTypeId}
|
|
|
- </if>
|
|
|
- <if test="crmSmallTypeId !=null and crmSmallTypeId !=''">
|
|
|
- AND a.crmSmallTypeId=#{crmSmallTypeId}
|
|
|
- </if>
|
|
|
<if test="secondHandType !=null and secondHandType !=''">
|
|
|
AND cshd.secondHandType=#{secondHandType}
|
|
|
</if>
|
|
@@ -353,26 +277,9 @@
|
|
|
searchKey,
|
|
|
normalPrice,
|
|
|
price,
|
|
|
- highestUserLevelPrice,
|
|
|
- lowestUserLevelPrice,
|
|
|
- lowestUserLevelID,
|
|
|
- price0,
|
|
|
- price0Text,
|
|
|
- price0TextFlag,
|
|
|
- price1,
|
|
|
- price1Text,
|
|
|
- price1TextFlag,
|
|
|
- price8,
|
|
|
- price8Text,
|
|
|
- price8TextFlag,
|
|
|
+ priceFlag,
|
|
|
+ beautyActFlag,
|
|
|
ladderPriceFlag,
|
|
|
- price2,
|
|
|
- price3,
|
|
|
- price4,
|
|
|
- price5,
|
|
|
- price6,
|
|
|
- price7,
|
|
|
- fee,
|
|
|
stock,
|
|
|
hasSkuFlag,
|
|
|
mainImage,
|
|
@@ -392,15 +299,12 @@
|
|
|
featuredFlag,
|
|
|
featuredSortIndex,
|
|
|
productCode,
|
|
|
- rate1,
|
|
|
- rate2,
|
|
|
unit,
|
|
|
synToERPFlag,
|
|
|
allAreaFlag,
|
|
|
provinceIDs,
|
|
|
serviceNumber,
|
|
|
maxBuyNumber,
|
|
|
- virtualFlag,
|
|
|
minBuyNumber,
|
|
|
packageCount,
|
|
|
byFlag,
|
|
@@ -409,50 +313,15 @@
|
|
|
promotionProductFlag,
|
|
|
groupBuyProductFlag,
|
|
|
step,
|
|
|
- speCommisionFlag,
|
|
|
- speCommision,
|
|
|
- videourl,
|
|
|
- props,
|
|
|
- providers,
|
|
|
- serviceCommissionRatio,
|
|
|
- reCommissionRatio,
|
|
|
- pushToERPName,
|
|
|
- prodBeans,
|
|
|
- useBeansFlag,
|
|
|
- privateFlag,
|
|
|
- invisibleServiceProviderIDs,
|
|
|
- displayOnCRMFlag,
|
|
|
- needServiceFlag,
|
|
|
- actPrice0,
|
|
|
- actPrice1,
|
|
|
- actPrice2,
|
|
|
- actPrice3,
|
|
|
- actPrice4,
|
|
|
- actPrice5,
|
|
|
- actPrice6,
|
|
|
- actPrice7,
|
|
|
- beginTime,
|
|
|
- endTime,
|
|
|
actFlag,
|
|
|
actType,
|
|
|
- actFullReduceAmount,
|
|
|
- actReduceAmount,
|
|
|
- actFullGiftAmount,
|
|
|
- actBuyGiftNum,
|
|
|
onlineTime,
|
|
|
downlineTime,
|
|
|
- shopIndexModuleID,
|
|
|
freePostFlag,
|
|
|
- crmBigTypeId,
|
|
|
- crmSmallTypeId,
|
|
|
costPrice,
|
|
|
costProportional,
|
|
|
costCheckFlag,
|
|
|
- precisehKey,
|
|
|
- docBoost,
|
|
|
- cmbeanFlag,
|
|
|
- cmbeanPrice,
|
|
|
- cmbeanSort)
|
|
|
+ precisehKey)
|
|
|
VALUES (#{id},
|
|
|
#{brandID},
|
|
|
#{tinyTypeID},
|
|
@@ -463,26 +332,9 @@
|
|
|
#{searchKey},
|
|
|
#{normalPrice},
|
|
|
#{price},
|
|
|
- #{highestUserLevelPrice},
|
|
|
- #{lowestUserLevelPrice},
|
|
|
- #{lowestUserLevelID},
|
|
|
- #{price0},
|
|
|
- #{price0Text},
|
|
|
- #{price0TextFlag},
|
|
|
- #{price1},
|
|
|
- #{price1Text},
|
|
|
- #{price1TextFlag},
|
|
|
- #{price8},
|
|
|
- #{price8Text},
|
|
|
- #{price8TextFlag},
|
|
|
+ #{priceFlag},
|
|
|
+ #{beautyActFlag},
|
|
|
#{ladderPriceFlag},
|
|
|
- #{price2},
|
|
|
- #{price3},
|
|
|
- #{price4},
|
|
|
- #{price5},
|
|
|
- #{price6},
|
|
|
- #{price7},
|
|
|
- #{fee},
|
|
|
#{stock},
|
|
|
#{hasSkuFlag},
|
|
|
#{mainImage},
|
|
@@ -502,15 +354,12 @@
|
|
|
#{featuredFlag},
|
|
|
#{featuredSortIndex},
|
|
|
#{productCode},
|
|
|
- #{rate1},
|
|
|
- #{rate2},
|
|
|
#{unit},
|
|
|
#{synToERPFlag},
|
|
|
#{allAreaFlag},
|
|
|
#{provinceIDs},
|
|
|
#{serviceNumber},
|
|
|
#{maxBuyNumber},
|
|
|
- #{virtualFlag},
|
|
|
#{minBuyNumber},
|
|
|
#{packageCount},
|
|
|
#{byFlag},
|
|
@@ -519,50 +368,15 @@
|
|
|
#{promotionProductFlag},
|
|
|
#{groupBuyProductFlag},
|
|
|
#{step},
|
|
|
- #{speCommisionFlag},
|
|
|
- #{speCommision},
|
|
|
- #{videourl},
|
|
|
- #{props},
|
|
|
- #{providers},
|
|
|
- #{serviceCommissionRatio},
|
|
|
- #{reCommissionRatio},
|
|
|
- #{pushToERPName},
|
|
|
- #{prodBeans},
|
|
|
- #{useBeansFlag},
|
|
|
- #{privateFlag},
|
|
|
- #{invisibleServiceProviderIDs},
|
|
|
- #{displayOnCRMFlag},
|
|
|
- #{needServiceFlag},
|
|
|
- #{actPrice0},
|
|
|
- #{actPrice1},
|
|
|
- #{actPrice2},
|
|
|
- #{actPrice3},
|
|
|
- #{actPrice4},
|
|
|
- #{actPrice5},
|
|
|
- #{actPrice6},
|
|
|
- #{actPrice7},
|
|
|
- #{beginTime},
|
|
|
- #{endTime},
|
|
|
#{actFlag},
|
|
|
#{actType},
|
|
|
- #{actFullReduceAmount},
|
|
|
- #{actReduceAmount},
|
|
|
- #{actFullGiftAmount},
|
|
|
- #{actBuyGiftNum},
|
|
|
#{onlineTime},
|
|
|
#{downlineTime},
|
|
|
- #{shopIndexModuleID},
|
|
|
#{freePostFlag},
|
|
|
- #{crmBigTypeId},
|
|
|
- #{crmSmallTypeId},
|
|
|
#{costPrice},
|
|
|
#{costProportional},
|
|
|
#{costCheckFlag},
|
|
|
- #{precisehKey},
|
|
|
- #{docBoost},
|
|
|
- #{cmbeanFlag},
|
|
|
- #{cmbeanPrice},
|
|
|
- #{cmbeanSort})
|
|
|
+ #{precisehKey})
|
|
|
</insert>
|
|
|
<update id="update">
|
|
|
UPDATE product
|
|
@@ -576,26 +390,9 @@
|
|
|
searchKey = #{searchKey},
|
|
|
normalPrice = #{normalPrice},
|
|
|
price = #{price},
|
|
|
- highestUserLevelPrice = #{highestUserLevelPrice},
|
|
|
- lowestUserLevelPrice = #{lowestUserLevelPrice},
|
|
|
- lowestUserLevelID = #{lowestUserLevelID},
|
|
|
- price0 = #{price0},
|
|
|
- price0Text = #{price0Text},
|
|
|
- price0TextFlag = #{price0TextFlag},
|
|
|
- price1 = #{price1},
|
|
|
- price1Text = #{price1Text},
|
|
|
- price1TextFlag = #{price1TextFlag},
|
|
|
- price8 = #{price8},
|
|
|
- price8Text = #{price8Text},
|
|
|
- price8TextFlag = #{price8TextFlag},
|
|
|
+ priceFlag = #{priceFlag},
|
|
|
+ beautyActFlag = #{beautyActFlag},
|
|
|
ladderPriceFlag = #{ladderPriceFlag},
|
|
|
- price2 = #{price2},
|
|
|
- price3 = #{price3},
|
|
|
- price4 = #{price4},
|
|
|
- price5 = #{price5},
|
|
|
- price6 = #{price6},
|
|
|
- price7 = #{price7},
|
|
|
- fee = #{fee},
|
|
|
stock = #{stock},
|
|
|
hasSkuFlag = #{hasSkuFlag},
|
|
|
mainImage = #{mainImage},
|
|
@@ -615,15 +412,12 @@
|
|
|
featuredFlag = #{featuredFlag},
|
|
|
featuredSortIndex = #{featuredSortIndex},
|
|
|
productCode = #{productCode},
|
|
|
- rate1 = #{rate1},
|
|
|
- rate2 = #{rate2},
|
|
|
unit = #{unit},
|
|
|
synToERPFlag = #{synToERPFlag},
|
|
|
allAreaFlag = #{allAreaFlag},
|
|
|
provinceIDs = #{provinceIDs},
|
|
|
serviceNumber = #{serviceNumber},
|
|
|
maxBuyNumber = #{maxBuyNumber},
|
|
|
- virtualFlag = #{virtualFlag},
|
|
|
minBuyNumber = #{minBuyNumber},
|
|
|
packageCount = #{packageCount},
|
|
|
byFlag = #{byFlag},
|
|
@@ -632,58 +426,22 @@
|
|
|
promotionProductFlag = #{promotionProductFlag},
|
|
|
groupBuyProductFlag = #{groupBuyProductFlag},
|
|
|
step = #{step},
|
|
|
- speCommisionFlag = #{speCommisionFlag},
|
|
|
- speCommision = #{speCommision},
|
|
|
- videourl = #{videourl},
|
|
|
- props = #{props},
|
|
|
- providers = #{providers},
|
|
|
- serviceCommissionRatio = #{serviceCommissionRatio},
|
|
|
- reCommissionRatio = #{reCommissionRatio},
|
|
|
- pushToERPName = #{pushToERPName},
|
|
|
- prodBeans = #{prodBeans},
|
|
|
- useBeansFlag = #{useBeansFlag},
|
|
|
- privateFlag = #{privateFlag},
|
|
|
- invisibleServiceProviderIDs = #{invisibleServiceProviderIDs},
|
|
|
- displayOnCRMFlag = #{displayOnCRMFlag},
|
|
|
- needServiceFlag = #{needServiceFlag},
|
|
|
- actPrice0 = #{actPrice0},
|
|
|
- actPrice1 = #{actPrice1},
|
|
|
- actPrice2 = #{actPrice2},
|
|
|
- actPrice3 = #{actPrice3},
|
|
|
- actPrice4 = #{actPrice4},
|
|
|
- actPrice5 = #{actPrice5},
|
|
|
- actPrice6 = #{actPrice6},
|
|
|
- actPrice7 = #{actPrice7},
|
|
|
- beginTime = #{beginTime},
|
|
|
- endTime = #{endTime},
|
|
|
actFlag = #{actFlag},
|
|
|
actType = #{actType},
|
|
|
- actFullReduceAmount = #{actFullReduceAmount},
|
|
|
- actReduceAmount = #{actReduceAmount},
|
|
|
- actFullGiftAmount = #{actFullGiftAmount},
|
|
|
- actBuyGiftNum = #{actBuyGiftNum},
|
|
|
onlineTime = #{onlineTime},
|
|
|
downlineTime = #{downlineTime},
|
|
|
- shopIndexModuleID = #{shopIndexModuleID},
|
|
|
freePostFlag = #{freePostFlag},
|
|
|
- crmBigTypeId = #{crmBigTypeId},
|
|
|
- crmSmallTypeId = #{crmSmallTypeId},
|
|
|
costPrice = #{costPrice},
|
|
|
costProportional = #{costProportional},
|
|
|
costCheckFlag = #{costCheckFlag},
|
|
|
precisehKey = #{precisehKey},
|
|
|
- docBoost = #{docBoost},
|
|
|
- cmbeanFlag = #{cmbeanFlag},
|
|
|
- cmbeanPrice = #{cmbeanPrice},
|
|
|
- cmbeanSort = #{cmbeanSort},
|
|
|
actSort = #{actSort},
|
|
|
productType = #{productType},
|
|
|
qualificationImg = #{qualificationImg},
|
|
|
includedTax = #{includedTax},
|
|
|
invoiceType = #{invoiceType},
|
|
|
taxPoint = #{taxPoint},
|
|
|
- supplierTaxPoint = #{supplierTaxPoint},
|
|
|
- actCreateTime = #{actCreateTime}
|
|
|
+ supplierTaxPoint = #{supplierTaxPoint}
|
|
|
WHERE productID = #{id}
|
|
|
</update>
|
|
|
|
|
@@ -740,75 +498,15 @@
|
|
|
<if test="price != null and price !=''">
|
|
|
price = #{price},
|
|
|
</if>
|
|
|
- <if test="highestUserLevelPrice != null and highestUserLevelPrice !=''">
|
|
|
- highestUserLevelPrice = #{highestUserLevelPrice},
|
|
|
- </if>
|
|
|
- <if test="lowestUserLevelPrice != null and lowestUserLevelPrice !=''">
|
|
|
- lowestUserLevelPrice = #{lowestUserLevelPrice},
|
|
|
- </if>
|
|
|
- <if test="lowestUserLevelID != null and lowestUserLevelID !=''">
|
|
|
- lowestUserLevelID = #{lowestUserLevelID},
|
|
|
- </if>
|
|
|
- <if test="price0 != null and price0 !=''">
|
|
|
- price0 = #{price0},
|
|
|
- </if>
|
|
|
- <if test="price0Grade != null and price0Grade !=''">
|
|
|
- price0Grade = #{price0Grade},
|
|
|
- </if>
|
|
|
- <if test="price0Text != null and price0Text !=''">
|
|
|
- price0Text = #{price0Text},
|
|
|
- </if>
|
|
|
- <if test="price0TextFlag != null and price0TextFlag !=''">
|
|
|
- price0TextFlag = #{price0TextFlag},
|
|
|
- </if>
|
|
|
- <if test="price1 != null and price1 !=''">
|
|
|
- price1 = #{price1},
|
|
|
- </if>
|
|
|
- <if test="price1Grade != null and price1Grade !=''">
|
|
|
- price1Grade = #{price1Grade},
|
|
|
- </if>
|
|
|
- <if test="price1Text != null and price1Text !=''">
|
|
|
- price1Text = #{price1Text},
|
|
|
- </if>
|
|
|
- <if test="price1TextFlag != null and price1TextFlag !=''">
|
|
|
- price1TextFlag = #{price1TextFlag},
|
|
|
- </if>
|
|
|
- <if test="price8 != null and price8 !=''">
|
|
|
- price8 = #{price8},
|
|
|
- </if>
|
|
|
- <if test="price8Grade != null and price8Grade !=''">
|
|
|
- price8Grade = #{price8Grade},
|
|
|
+ <if test="priceFlag != null and priceFlag !=''">
|
|
|
+ priceFlag = #{priceFlag},
|
|
|
</if>
|
|
|
- <if test="price8Text != null and price8Text !=''">
|
|
|
- price8Text = #{price8Text},
|
|
|
- </if>
|
|
|
- <if test="price8TextFlag != null and price8TextFlag !=''">
|
|
|
- price8TextFlag = #{price8TextFlag},
|
|
|
+ <if test="beautyActFlag != null and beautyActFlag !=''">
|
|
|
+ beautyActFlag = #{beautyActFlag},
|
|
|
</if>
|
|
|
<if test="ladderPriceFlag != null and ladderPriceFlag !=''">
|
|
|
ladderPriceFlag = #{ladderPriceFlag},
|
|
|
</if>
|
|
|
- <if test="price2 != null and price2 !=''">
|
|
|
- price2 = #{price2},
|
|
|
- </if>
|
|
|
- <if test="price3 != null and price3 !=''">
|
|
|
- price3 = #{price3},
|
|
|
- </if>
|
|
|
- <if test="price4 != null and price4 !=''">
|
|
|
- price4 = #{price4},
|
|
|
- </if>
|
|
|
- <if test="price5 != null and price5 !=''">
|
|
|
- price5 = #{price5},
|
|
|
- </if>
|
|
|
- <if test="price6 != null and price6 !=''">
|
|
|
- price6 = #{price6},
|
|
|
- </if>
|
|
|
- <if test="price7 != null and price7 !=''">
|
|
|
- price7 = #{price7},
|
|
|
- </if>
|
|
|
- <if test="fee != null and fee !=''">
|
|
|
- fee = #{fee},
|
|
|
- </if>
|
|
|
<if test="stock != null and stock !=''">
|
|
|
stock = #{stock},
|
|
|
</if>
|
|
@@ -866,12 +564,6 @@
|
|
|
<if test="productCode != null and productCode !=''">
|
|
|
productCode = #{productCode},
|
|
|
</if>
|
|
|
- <if test="rate1 != null and rate1 !=''">
|
|
|
- rate1 = #{rate1},
|
|
|
- </if>
|
|
|
- <if test="rate2 != null and rate2 !=''">
|
|
|
- rate2 = #{rate2},
|
|
|
- </if>
|
|
|
<if test="unit != null and unit !=''">
|
|
|
unit = #{unit},
|
|
|
</if>
|
|
@@ -890,9 +582,6 @@
|
|
|
<if test="maxBuyNumber != null and maxBuyNumber !=''">
|
|
|
maxBuyNumber = #{maxBuyNumber},
|
|
|
</if>
|
|
|
- <if test="virtualFlag != null and virtualFlag !=''">
|
|
|
- virtualFlag = #{virtualFlag},
|
|
|
- </if>
|
|
|
<if test="minBuyNumber != null and minBuyNumber !=''">
|
|
|
minBuyNumber = #{minBuyNumber},
|
|
|
</if>
|
|
@@ -917,93 +606,15 @@
|
|
|
<if test="step != null and step !=''">
|
|
|
step = #{step},
|
|
|
</if>
|
|
|
- <if test="speCommisionFlag != null and speCommisionFlag !=''">
|
|
|
- speCommisionFlag = #{speCommisionFlag},
|
|
|
- </if>
|
|
|
- <if test="speCommision != null and speCommision !=''">
|
|
|
- speCommision = #{speCommision},
|
|
|
- </if>
|
|
|
- <if test="videourl != null and videourl !=''">
|
|
|
- videourl = #{videourl},
|
|
|
- </if>
|
|
|
- <if test="props != null and props !=''">
|
|
|
- props = #{props},
|
|
|
- </if>
|
|
|
- <if test="providers != null and providers !=''">
|
|
|
- providers = #{providers},
|
|
|
- </if>
|
|
|
- <if test="serviceCommissionRatio != null and serviceCommissionRatio !=''">
|
|
|
- serviceCommissionRatio = #{serviceCommissionRatio},
|
|
|
- </if>
|
|
|
- <if test="reCommissionRatio != null and reCommissionRatio !=''">
|
|
|
- reCommissionRatio = #{reCommissionRatio},
|
|
|
- </if>
|
|
|
- <if test="pushToERPName != null and pushToERPName !=''">
|
|
|
- pushToERPName = #{pushToERPName},
|
|
|
- </if>
|
|
|
- <if test="prodBeans != null and prodBeans !=''">
|
|
|
- prodBeans = #{prodBeans},
|
|
|
- </if>
|
|
|
- <if test="useBeansFlag != null and useBeansFlag !=''">
|
|
|
- useBeansFlag = #{useBeansFlag},
|
|
|
- </if>
|
|
|
- <if test="privateFlag != null and privateFlag !=''">
|
|
|
- privateFlag = #{privateFlag},
|
|
|
- </if>
|
|
|
- <if test="invisibleServiceProviderIDs != null and invisibleServiceProviderIDs !=''">
|
|
|
- invisibleServiceProviderIDs = #{invisibleServiceProviderIDs},
|
|
|
- </if>
|
|
|
- <if test="displayOnCRMFlag != null and displayOnCRMFlag !=''">
|
|
|
- displayOnCRMFlag = #{displayOnCRMFlag},
|
|
|
- </if>
|
|
|
- <if test="needServiceFlag != null and needServiceFlag !=''">
|
|
|
- needServiceFlag = #{needServiceFlag},
|
|
|
- </if>
|
|
|
<if test="actFlag != null and actFlag !=''">
|
|
|
actFlag = #{actFlag},
|
|
|
</if>
|
|
|
<if test="actSort != null and actSort !=''">
|
|
|
actSort = #{actSort},
|
|
|
</if>
|
|
|
- <if test="actPrice0 != null and actPrice0 !=''">
|
|
|
- actPrice0 = #{actPrice0},
|
|
|
- </if>
|
|
|
- <if test="actPrice1 != null and actPrice1 !=''">
|
|
|
- actPrice1 = #{actPrice1},
|
|
|
- </if>
|
|
|
- <if test="actPrice2 != null and actPrice2 !=''">
|
|
|
- actPrice2 = #{actPrice2},
|
|
|
- </if>
|
|
|
- <if test="actPrice3 != null and actPrice3 !=''">
|
|
|
- actPrice3 = #{actPrice3},
|
|
|
- </if>
|
|
|
- <if test="actPrice4 != null and actPrice4 !=''">
|
|
|
- actPrice4 = #{actPrice4},
|
|
|
- </if>
|
|
|
- <if test="actPrice5 != null and actPrice5 !=''">
|
|
|
- actPrice5 = #{actPrice5},
|
|
|
- </if>
|
|
|
- <if test="actPrice6 != null and actPrice6 !=''">
|
|
|
- actPrice6 = #{actPrice6},
|
|
|
- </if>
|
|
|
- <if test="actPrice7 != null and actPrice7 !=''">
|
|
|
- actPrice7 = #{actPrice7},
|
|
|
- </if>
|
|
|
<if test="actType != null and actType !=''">
|
|
|
actType = #{actType},
|
|
|
</if>
|
|
|
- <if test="actCreateTime != null and actCreateTime !=''">
|
|
|
- actCreateTime = #{actCreateTime},
|
|
|
- </if>
|
|
|
- <if test="beginTime != null and beginTime !=''">
|
|
|
- beginTime = #{beginTime},
|
|
|
- </if>
|
|
|
- <if test="endTime != null and endTime !=''">
|
|
|
- endTime = #{endTime},
|
|
|
- </if>
|
|
|
- <if test="shopIndexModuleID != null and shopIndexModuleID !=''">
|
|
|
- shopIndexModuleID = #{shopIndexModuleID},
|
|
|
- </if>
|
|
|
<if test="onlineTime != null and onlineTime !=''">
|
|
|
onlineTime = #{onlineTime},
|
|
|
</if>
|
|
@@ -1013,12 +624,6 @@
|
|
|
<if test="freePostFlag != null and freePostFlag !=''">
|
|
|
freePostFlag = #{freePostFlag},
|
|
|
</if>
|
|
|
- <if test="crmBigTypeId != null and crmBigTypeId !=''">
|
|
|
- crmBigTypeId = #{crmBigTypeId},
|
|
|
- </if>
|
|
|
- <if test="crmSmallTypeId != null and crmSmallTypeId !=''">
|
|
|
- crmSmallTypeId = #{crmSmallTypeId},
|
|
|
- </if>
|
|
|
<if test="costPrice != null and costPrice != ''">
|
|
|
costPrice = #{costPrice},
|
|
|
</if>
|
|
@@ -1031,42 +636,12 @@
|
|
|
<if test="precisehKey != null and precisehKey !=''">
|
|
|
precisehKey = #{precisehKey},
|
|
|
</if>
|
|
|
- <if test="docBoost != null and docBoost !=''">
|
|
|
- docBoost = #{docBoost},
|
|
|
- </if>
|
|
|
- <if test="cmbeanFlag != null and cmbeanFlag !=''">
|
|
|
- cmbeanFlag = #{cmbeanFlag},
|
|
|
- </if>
|
|
|
- <if test="cmbeanPrice != null and cmbeanPrice !=''">
|
|
|
- cmbeanPrice = #{cmbeanPrice},
|
|
|
- </if>
|
|
|
- <if test="cmbeanSort != null and cmbeanSort !=''">
|
|
|
- cmbeanSort = #{cmbeanSort},
|
|
|
- </if>
|
|
|
- <if test="actBuyGiftNum != null and actBuyGiftNum !=''">
|
|
|
- actBuyGiftNum = #{actBuyGiftNum},
|
|
|
- </if>
|
|
|
- <if test="actFullGiftAmount != null and actFullGiftAmount !=''">
|
|
|
- actFullGiftAmount = #{actFullGiftAmount},
|
|
|
- </if>
|
|
|
- <if test="actFullReduceAmount != null and actFullReduceAmount !=''">
|
|
|
- actFullReduceAmount = #{actFullReduceAmount},
|
|
|
- </if>
|
|
|
- <if test="actReduceAmount != null and actReduceAmount !=''">
|
|
|
- actReduceAmount = #{actReduceAmount},
|
|
|
- </if>
|
|
|
<if test="visibility != null and visibility !=''">
|
|
|
visibility = #{visibility},
|
|
|
</if>
|
|
|
- <if test="surplusTime != null and surplusTime !=''">
|
|
|
- surplusTime = #{surplusTime},
|
|
|
- </if>
|
|
|
<if test="endTimeStr != null and endTimeStr !=''">
|
|
|
endTimeStr = #{endTimeStr},
|
|
|
</if>
|
|
|
- <if test="priceType != null and priceType !=''">
|
|
|
- priceType = #{priceType},
|
|
|
- </if>
|
|
|
<if test="tags != null and tags !=''">
|
|
|
tags = #{tags},
|
|
|
</if>
|