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.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.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 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, normalPrice, price, priceFlag, beautyActFlag, ladderPriceFlag, stock, hasSkuFlag, mainImage, propertiesInfo, addTime, updateTime, weekSellNumber, beforeValidFlag, validFlag, favoriteTimes, commentScore, commentTimes, selfRecommendFlag, sysRecommendFlag, sortIndex, featuredFlag, featuredSortIndex, productCode, unit, synToERPFlag, allAreaFlag, provinceIDs, serviceNumber, maxBuyNumber, minBuyNumber, packageCount, byFlag, normalProductFlag, wholeSaleProductFlag, promotionProductFlag, groupBuyProductFlag, step, actFlag, actType, actSort, onlineTime, downlineTime, freePostFlag, costPrice, costProportional, costCheckFlag, precisehKey, visibility, 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}, #{normalPrice}, #{price}, #{priceFlag}, #{beautyActFlag}, #{ladderPriceFlag}, #{stock}, #{hasSkuFlag}, #{mainImage}, #{propertiesInfo}, #{addTime}, #{updateTime}, #{weekSellNumber}, #{beforeValidFlag}, #{validFlag}, #{favoriteTimes}, #{commentScore}, #{commentTimes}, #{selfRecommendFlag}, #{sysRecommendFlag}, #{sortIndex}, #{featuredFlag}, #{featuredSortIndex}, #{productCode}, #{unit}, #{synToERPFlag}, #{allAreaFlag}, #{provinceIDs}, #{serviceNumber}, #{maxBuyNumber}, #{minBuyNumber}, #{packageCount}, #{byFlag}, #{normalProductFlag}, #{wholeSaleProductFlag}, #{promotionProductFlag}, #{groupBuyProductFlag}, #{step}, #{actFlag}, #{actType}, #{actSort}, #{onlineTime}, #{downlineTime}, #{freePostFlag}, #{SqlCostPrice}, #{sqlCostProportional}, #{costCheckFlag}, #{precisehKey}, #{visibility}, #{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}, normalPrice = #{normalPrice}, price = #{price}, priceFlag = #{priceFlag}, beautyActFlag = #{beautyActFlag}, ladderPriceFlag = #{ladderPriceFlag}, stock = #{stock}, 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}, unit = #{unit}, synToERPFlag = #{synToERPFlag}, allAreaFlag = #{allAreaFlag}, provinceIDs = #{provinceIDs}, serviceNumber = #{serviceNumber}, maxBuyNumber = #{maxBuyNumber}, minBuyNumber = #{minBuyNumber}, packageCount = #{packageCount}, byFlag = #{byFlag}, normalProductFlag = #{normalProductFlag}, wholeSaleProductFlag = #{wholeSaleProductFlag}, promotionProductFlag = #{promotionProductFlag}, groupBuyProductFlag = #{groupBuyProductFlag}, step = #{step}, actFlag = #{actFlag}, actType = #{actType}, onlineTime = #{onlineTime}, downlineTime = #{downlineTime}, freePostFlag = #{freePostFlag}, costPrice = #{costPrice}, costProportional = #{costProportional}, costCheckFlag = #{costCheckFlag}, 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}, #{createDate},'0') INSERT INTO `product` ( `brandID`, `tinyTypeID`, `productCategory`, `preferredFlag`, `selfTypeID`, `shopID`, `name`, `aliasName`, `searchKey`, `productRemarks`, `normalPrice`, `price`, `priceFlag`, `beautyActFlag`, `ladderPriceFlag`, `stock`, `hasSkuFlag`, `mainImage`, `propertiesInfo`, `addTime`, `updateTime`, `weekSellNumber`, `beforeValidFlag`, `validFlag`, `favoriteTimes`, `commentScore`, `commentTimes`, `selfRecommendFlag`, `sysRecommendFlag`, `sortIndex`, `featuredFlag`, `featuredSortIndex`, `productCode`, `unit`, `synToERPFlag`, `allAreaFlag`, `provinceIDs`, `serviceNumber`, `maxBuyNumber`, `minBuyNumber`, `packageCount`, `byFlag`, `normalProductFlag`, `wholeSaleProductFlag`, `promotionProductFlag`, `groupBuyProductFlag`, `step`, `actFlag`, `actStatus`, `actSort`, `actType`, `visibility`, `onlineTime`, `downlineTime`, `freePostFlag`, `costPrice`, `costProportional`, `costCheckFlag`, `precisehKey`, `tags`, `productType`, `machineType`, `qualificationImg`, `includedTax`, `taxPoint`, `invoiceType`, `recommendType`, `combinationID`, `combinationSort`, announType ) VALUES ( #{brandID}, #{tinyTypeID}, #{productCategory}, #{preferredFlag}, #{selfTypeID}, #{shopID}, #{name}, #{aliasName}, #{searchKey}, #{productRemarks}, #{normalPrice}, #{price}, #{priceFlag}, #{beautyActFlag}, #{ladderPriceFlag}, #{stock}, #{hasSkuFlag}, #{mainImage}, #{propertiesInfo}, #{addTime}, #{updateTime}, #{weekSellNumber}, #{beforeValidFlag}, #{validFlag}, #{favoriteTimes}, #{commentScore}, #{commentTimes}, #{selfRecommendFlag}, #{sysRecommendFlag}, #{sortIndex}, #{featuredFlag}, #{featuredSortIndex}, #{productCode}, #{unit}, #{synToERPFlag}, #{allAreaFlag}, #{provinceIDs}, #{serviceNumber}, #{maxBuyNumber}, #{minBuyNumber}, #{packageCount}, #{byFlag}, #{normalProductFlag}, #{wholeSaleProductFlag}, #{promotionProductFlag}, #{groupBuyProductFlag}, #{step}, #{actFlag}, #{actStatus}, #{actSort}, #{actType}, #{visibility}, #{onlineTime}, #{downlineTime}, #{freePostFlag}, #{costPrice}, #{costProportional}, #{costCheckFlag}, #{precisehKey}, #{tags}, #{productType}, #{machineType}, #{qualificationImg}, #{includedTax}, #{taxPoint}, #{invoiceType}, #{recommendType}, #{combinationID}, #{combinationSort}, #{announType} ) insert into productdetailinfo `productID`, `detailInfo`, `serviceInfo`, `orderInfo`, #{productID}, #{detailInfo}, #{serviceInfo}, #{orderInfo}, 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 id = #{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}, normalPrice = #{normalPrice}, price = #{price}, priceFlag = #{priceFlag}, beautyActFlag = #{beautyActFlag}, ladderPriceFlag = #{ladderPriceFlag}, stock = #{stock}, 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}, unit = #{unit}, synToERPFlag = #{synToERPFlag}, allAreaFlag = #{allAreaFlag}, provinceIDs = #{provinceIDs}, serviceNumber = #{serviceNumber}, maxBuyNumber = #{maxBuyNumber}, minBuyNumber = #{minBuyNumber}, 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}, costPrice = #{costPrice}, costProportional = #{costProportional}, costCheckFlag = #{costCheckFlag}, precisehKey = #{precisehKey}, visibility = #{visibility}, 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}, newProductType=#{newProductType}, showFlag=#{showFlag}, announType=#{announType}, splitCode = #{splitCode} 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}