a.productID AS "id", a.productID AS "productID", a.brandID AS "brandID", a.bigTypeID AS "bigTypeID", ifnull(a.smallTypeID,-1) AS "smallTypeID", ifnull(a.tinyTypeID,-1) AS "tinyTypeID", 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.priceFlag AS "priceFlag", a.beautyActFlag AS "beautyActFlag", 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.synToERPFlag AS "synToERPFlag", a.allAreaFlag AS "allAreaFlag", a.provinceIDs AS "provinceIDs", a.serviceNumber AS "serviceNumber", 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.precisehKey AS "precisehKey", s.name AS "shopName", a.actSort AS "actSort", a.recommendType AS "recommendType", a.aliasName as "aliasName", a.visibility as "visibility", # a.commodityDetailsFlag as "commodityDetailsFlag", a.productType as "productType", a.qualificationImg as "qualificationImg", a.includedTax as "includedTax", a.invoiceType as "invoiceType", a.taxPoint as "taxPoint", a.tags as "tags", a.machineType as "machineType", a.trainingMethod as "trainingMethod", a.trainingType as "trainingType", a.trainingFee as "trainingFee", a.commodityType as "commodityType", a.splitCode, a.announType, ifnull(a.newvalidFlag,0), ifnull(a.newProductType,2), a.showFlag, a.showTime, a.newshowTime, a.recommend, a.qualificationNo, a.productName, a.qualificationTime, a.qualificationLink, a.labelIds LEFT JOIN shop s on s.shopID = a.shopID left join product p on a.productID = p.productId LEFT JOIN shop s on s.shopID = a.shopID UPDATE cm_search_recommend_product SET sort = #{sort} WHERE id = #{id} INSERT INTO product(brandID, bigTypeID, smallTypeID, tinyTypeID, selfTypeID, shopID, aliasName, name, searchKey, priceFlag, beautyActFlag, hasSkuFlag, mainImage, propertiesInfo, addTime, updateTime, weekSellNumber, beforeValidFlag, validFlag, favoriteTimes, commentScore, commentTimes, selfRecommendFlag, sysRecommendFlag, sortIndex, featuredFlag, featuredSortIndex, productCode, synToERPFlag, allAreaFlag, provinceIDs, serviceNumber, packageCount, byFlag, normalProductFlag, wholeSaleProductFlag, promotionProductFlag, groupBuyProductFlag, step, actFlag, actType, actSort, onlineTime, downlineTime, freePostFlag, precisehKey, visibility, commodityDetailsFlag, productType, qualificationImg, invoiceType, taxPoint, supplierTaxPoint, tags, recommendType, machineType, includedTax, commodityType, trainingMethod, trainingType, trainingFee, productDescribe, splitCode, productDetail, announType, newProductType, qualificationNo, productName, qualificationTime, qualificationLink, showFlag) VALUES (#{brandID}, #{bigTypeID}, #{smallTypeID}, #{tinyTypeID}, #{selfTypeID}, #{shopID}, #{aliasName}, #{name}, #{searchKey}, #{priceFlag}, #{beautyActFlag}, #{hasSkuFlag}, #{mainImage}, #{propertiesInfo}, #{addTime}, #{updateTime}, #{weekSellNumber}, #{beforeValidFlag}, #{validFlag}, #{favoriteTimes}, #{commentScore}, #{commentTimes}, #{selfRecommendFlag}, #{sysRecommendFlag}, #{sortIndex}, #{featuredFlag}, #{featuredSortIndex}, #{productCode}, #{synToERPFlag}, #{allAreaFlag}, #{provinceIDs}, #{serviceNumber}, #{packageCount}, #{byFlag}, #{normalProductFlag}, #{wholeSaleProductFlag}, #{promotionProductFlag}, #{groupBuyProductFlag}, #{step}, #{actFlag}, #{actType}, #{actSort}, #{onlineTime}, #{downlineTime}, #{freePostFlag}, #{precisehKey}, #{visibility}, #{commodityDetailsFlag}, #{productType}, #{qualificationImg}, #{invoiceType}, #{sqlTaxPoint}, #{sqlSupplierTaxPoint}, #{tags}, #{recommendType}, #{machineType}, #{includedTax}, #{commodityType}, #{trainingMethod}, #{trainingType}, #{trainingFee}, #{productDescribe}, #{splitCode}, #{productDetail}, #{announType}, #{newProductType}, #{qualificationNo}, #{productName}, #{qualificationTime}, #{qualificationLink}, #{showFlag}) UPDATE product SET productID = #{id}, brandID = #{brandID}, tinyTypeID = #{tinyTypeID}, selfTypeID = #{selfTypeID}, shopID = #{shopID}, name = #{name}, searchKey = #{searchKey}, priceFlag = #{priceFlag}, beautyActFlag = #{beautyActFlag}, hasSkuFlag = #{hasSkuFlag}, mainImage = #{mainImage}, propertiesInfo = #{propertiesInfo}, addTime = #{addTime}, updateTime = #{updateTime}, sellNumber = #{sellNumber}, weekSellNumber = #{weekSellNumber}, beforeValidFlag = #{beforeValidFlag}, validFlag = #{validFlag}, favoriteTimes = #{favoriteTimes}, commentScore = #{commentScore}, commentTimes = #{commentTimes}, selfRecommendFlag = #{selfRecommendFlag}, sysRecommendFlag = #{sysRecommendFlag}, sortIndex = #{sortIndex}, featuredFlag = #{featuredFlag}, featuredSortIndex = #{featuredSortIndex}, productCode = #{productCode}, synToERPFlag = #{synToERPFlag}, allAreaFlag = #{allAreaFlag}, provinceIDs = #{provinceIDs}, serviceNumber = #{serviceNumber}, packageCount = #{packageCount}, byFlag = #{byFlag}, normalProductFlag = #{normalProductFlag}, wholeSaleProductFlag = #{wholeSaleProductFlag}, promotionProductFlag = #{promotionProductFlag}, groupBuyProductFlag = #{groupBuyProductFlag}, step = #{step}, actFlag = #{actFlag}, actType = #{actType}, onlineTime = #{onlineTime}, downlineTime = #{downlineTime}, freePostFlag = #{freePostFlag}, precisehKey = #{precisehKey}, actSort = #{actSort}, newProductType=#{newProductType} WHERE productID = #{id} UPDATE product actFlag = #{actFlag}, actType = #{actType}, actSort = #{actSort}, actCreateTime = #{actCreateTime}, WHERE productID = #{productID} UPDATE product SET preferredFlag = #{preferredFlag} WHERE productID = #{productID} DELETE FROM product WHERE id = #{id} UPDATE cm_search_recommend_product SET delFlag = #{DateTime} WHERE id = #{id} update gift_product fullGiftProductId = #{fullGiftProductId}, giftProductId = #{giftProductId}, productName = #{productName}, actType = #{actType}, giftProductNum = #{giftProductNum}, createBy = #{createBy.id}, createDate = #{createDate}, updateBy = #{updateBy.id}, updateDate = #{updateDate}, delFlag = #{delFlag}, where id = #{id} INSERT INTO gift_product(fullGiftProductId, giftProductId, productName, actType, giftProductNum, createBy, createDate, updateBy, updateDate, delFlag) VALUES (#{fullGiftProductId}, #{giftProductId}, #{productName}, #{actType}, #{giftProductNum}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{delFlag}) INSERT INTO productpricerecord(`productID`, `shopID`, `highestUserLevelPrice`, `lowestUserLevelPrice`, `lowestUserLevelID`, `price0`, `price1`, `updateTime`) VALUES (#{productID}, #{shopID}, #{highestUserLevelPrice}, #{lowestUserLevelPrice}, #{lowestUserLevelID}, #{price0}, #{price1}, #{updateTime}) UPDATE product a SET a.actFlag = 0 WHERE a.productID = #{id} UPDATE product a SET a.freePostFlag = #{param1} WHERE a.productID IN #{id} delete from product_custom_classification where productID = #{productID} INSERT INTO product_custom_classification(productID, bigTypeID, smallTypeID, tinyTypeID, createDate, updateDate) VALUES (#{productID}, #{bigTypeID}, #{smallTypeID}, #{tinyTypeID}, #{createDate}, #{updateDate}) INSERT INTO cm_search_recommend_product(productID, tinyTypeID, sort, delFlag) VALUES (#{productID}, #{tinyTypeID}, 0, 0) insert into product_ladder_price (productId, userType, ladderNum, buyNum, buyPrice, createBy, createDate, delFlag) values (#{productId}, 3, #{ladderNum}, #{buyNum}, #{buyPrice}, #{createBy}, now(), '0') INSERT INTO `product` ( `brandID`, `tinyTypeID`, `productCategory`, `preferredFlag`, `selfTypeID`, `shopID`, `name`, `aliasName`, `searchKey`, `productRemarks`, `priceFlag`, `beautyActFlag`, `hasSkuFlag`, `mainImage`, `propertiesInfo`, `addTime`, `updateTime`, `weekSellNumber`, `beforeValidFlag`, `validFlag`, `favoriteTimes`, `commentScore`, `commentTimes`, `selfRecommendFlag`, `sysRecommendFlag`, `sortIndex`, `featuredFlag`, `featuredSortIndex`, `productCode`, `synToERPFlag`, `allAreaFlag`, `provinceIDs`, `serviceNumber`, `packageCount`, `byFlag`, `normalProductFlag`, `wholeSaleProductFlag`, `promotionProductFlag`, `groupBuyProductFlag`, `step`, `actFlag`, `actStatus`, `actSort`, `actType`, `visibility`, `onlineTime`, `downlineTime`, `freePostFlag`, `precisehKey`, `tags`, `productType`, `machineType`, `qualificationImg`, `includedTax`, `taxPoint`, `invoiceType`, `recommendType`, `combinationID`, `combinationSort`, announType ) VALUES ( #{brandID}, #{tinyTypeID}, #{productCategory}, #{preferredFlag}, #{selfTypeID}, #{shopID}, #{name}, #{aliasName}, #{searchKey}, #{productRemarks}, #{priceFlag}, #{beautyActFlag}, #{hasSkuFlag}, #{mainImage}, #{propertiesInfo}, #{addTime}, #{updateTime}, #{weekSellNumber}, #{beforeValidFlag}, #{validFlag}, #{favoriteTimes}, #{commentScore}, #{commentTimes}, #{selfRecommendFlag}, #{sysRecommendFlag}, #{sortIndex}, #{featuredFlag}, #{featuredSortIndex}, #{productCode}, #{synToERPFlag}, #{allAreaFlag}, #{provinceIDs}, #{serviceNumber}, #{packageCount}, #{byFlag}, #{normalProductFlag}, #{wholeSaleProductFlag}, #{promotionProductFlag}, #{groupBuyProductFlag}, #{step}, #{actFlag}, #{actStatus}, #{actSort}, #{actType}, #{visibility}, #{onlineTime}, #{downlineTime}, #{freePostFlag}, #{precisehKey}, #{tags}, #{productType}, #{machineType}, #{qualificationImg}, #{includedTax}, #{taxPoint}, #{invoiceType}, #{recommendType}, #{combinationID}, #{combinationSort}, #{announType} ) insert into productdetailinfo `productID`, `detailInfo`, `serviceInfo`, `orderInfo`, #{productID}, #{detailInfo}, #{serviceInfo}, #{orderInfo}, insert into cm_sku (productId, normalPrice, price, ladderPriceFlag, costCheckFlag, costprice, stock, costProportional, minBuyNumber, unit) values (#{productId}, #{normalPrice}, #{price}, #{ladderPriceFlag}, #{costCheckFlag}, #{costPrice}, #{stock}, #{costProportional}, #{minBuyNumber}, #{unit}) insert into product_ladder_price (skuId, productId, userType, ladderNum, buyNum, buyPrice, createBy, createDate, delFlag) values (#{skuId}, #{productId}, 3, #{ladderNum}, #{buyNum}, #{buyPrice}, #{createBy}, now(), '0') delete from product_custom_classification where productID = #{productID} and tinyTypeID = #{tinyTypeID} DELETE FROM product_ladder_price where productId = #{productID} DELETE FROM product_ladder_price where productId = #{productId} and skuId = #{skuId} delete from cm_sku where productId = #{productID} DELETE FROM cm_sku WHERE productId = #{productId} and skuId not in #{id} UPDATE product SET recommendType = #{recommendType} WHERE productID = #{productID} UPDATE product set brandID = #{brandID} WHERE productID = #{productID} UPDATE product set brandID = null WHERE brandID = #{brandId} UPDATE product set tinyTypeID = #{tinyTypeID} WHERE productID = #{productID} update product productDescribe = #{productDescribe}, productDetail = #{productDetail}, brandID = #{brandID}, bigTypeID = #{bigTypeID}, smallTypeID = #{smallTypeID}, tinyTypeID = #{tinyTypeID}, preferredFlag = #{preferredFlag}, shopID = #{shopID}, `name` = #{name}, aliasName = #{aliasName}, searchKey = #{searchKey}, productRemarks = #{productRemarks}, combinationID = #{combinationID}, priceFlag = #{priceFlag}, beautyActFlag = #{beautyActFlag}, hasSkuFlag = #{hasSkuFlag}, mainImage = #{mainImage}, propertiesInfo = #{propertiesInfo}, addTime = #{addTime}, updateTime = #{updateTime}, weekSellNumber = #{weekSellNumber}, beforeValidFlag = #{beforeValidFlag}, validFlag = #{validFlag}, favoriteTimes = #{favoriteTimes}, commentScore = #{commentScore}, commentTimes = #{commentTimes}, selfRecommendFlag = #{selfRecommendFlag}, sysRecommendFlag = #{sysRecommendFlag}, sortIndex = #{sortIndex}, featuredFlag = #{featuredFlag}, featuredSortIndex = #{featuredSortIndex}, productCode = #{productCode}, synToERPFlag = #{synToERPFlag}, allAreaFlag = #{allAreaFlag}, provinceIDs = #{provinceIDs}, serviceNumber = #{serviceNumber}, packageCount = #{packageCount}, byFlag = #{byFlag}, normalProductFlag = #{normalProductFlag}, wholeSaleProductFlag = #{wholeSaleProductFlag}, promotionProductFlag = #{promotionProductFlag}, groupBuyProductFlag = #{groupBuyProductFlag}, step = #{step}, actFlag = #{actFlag}, actSort = #{actSort}, actType = #{actType}, onlineTime = #{onlineTime}, downlineTime = #{downlineTime}, freePostFlag = #{freePostFlag}, precisehKey = #{precisehKey}, visibility = #{visibility}, commodityDetailsFlag = #{commodityDetailsFlag}, productType = #{productType}, qualificationImg = #{qualificationImg}, qualificationImg = #{qualificationImg}, invoiceType = #{invoiceType}, taxPoint = #{taxPoint}, supplierTaxPoint = #{supplierTaxPoint}, endTimeStr = #{endTimeStr}, tags = #{tags}, recommendType = #{recommendType}, machineType = #{machineType}, includedTax = #{includedTax}, invoiceType = #{invoiceType}, commodityType = #{commodityType}, trainingMethod = #{trainingMethod}, trainingType = #{trainingType}, trainingFee = #{trainingFee}, qualificationNo=#{qualificationNo}, productName=#{productName}, qualificationTime=#{qualificationTime}, qualificationLink=#{qualificationLink}, labelIds=#{labelIds}, relatedLabels=#{relatedLabels}, newProductType=#{newProductType}, showFlag=#{showFlag}, announType=#{announType}, splitCode = #{splitCode}, returnGoodsStutas=#{returnGoodsStutas} where productID = #{productID} update productdetailinfo propValueAlias = #{propValueAlias}, propValueImages = #{propValueImages}, detailInfo = #{detailInfo}, commonDetailInfo = #{commonDetailInfo}, detailInfoTxt = #{detailInfoTxt}, seoTitle = #{seoTitle}, seoKeyword = #{seoKeyword}, seoDes = #{seoDes}, serviceInfo = #{serviceInfo}, orderInfo = #{orderInfo}, where productID = #{productID} update product_ladder_price set productId = #{productId}, ladderNum = #{ladderNum}, buyNum = #{buyNum}, buyPrice = #{buyPrice}, updateBy = #{updateBy}, updateDate = #{updateDate}, delFlag = #{delFlag} where id = #{id} update product set mainImage =#{mainImage} where productID = #{productID} update cm_sku set productId=#{productId}, ladderPriceFlag=#{ladderPriceFlag}, normalPrice=#{normalPrice}, price=#{price}, costProportional=#{costProportional}, costPrice=#{costPrice}, costCheckFlag=#{costCheckFlag}, stock=#{stock}, unit=#{unit}, minBuyNumber=#{minBuyNumber} where skuId = #{skuId}