bigTypeID, `name`, bigTypeCode, validFlag, sortIndex, seo, displayOnHomePageFlag
smallTypeID, bigTypeID, `name`, smallTypeCode, validFlag, sortIndex, seo, displayOnHomePageFlag
tinyTypeID, smallTypeID, `name`, tinyTypeCode, icon, validFlag, seo, sortIndex
productID, brandID, tinyTypeID,productCategory, preferredFlag, selfTypeID, shopID, `name`, aliasName, searchKey, productRemarks,
normalPrice, price, highestUserLevelPrice, lowestUserLevelPrice, lowestUserLevelID,
price0, price0Grade, price0Text, price0TextFlag, price1, price1Grade, price1Text,
price1TextFlag, price8, price8Grade, price8Text, price8TextFlag, ladderPriceFlag,
price2, price3, price4, price5, price6, price7, fee, stock, hasSkuFlag, mainImage,
propertiesInfo, addTime, updateTime, sellNumber, weekSellNumber, beforeValidFlag,
validFlag, favoriteTimes, commentScore, commentTimes, selfRecommendFlag, sysRecommendFlag,
sortIndex, featuredFlag, featuredSortIndex, productCode, rate1, rate2, unit, synToERPFlag,
allAreaFlag, provinceIDs, serviceNumber, maxBuyNumber, virtualFlag, minBuyNumber,
packageCount, byFlag, normalProductFlag, wholeSaleProductFlag, promotionProductFlag,
groupBuyProductFlag, step, speCommisionFlag, speCommision, videourl, props, providers,
serviceCommissionRatio, reCommissionRatio, pushToERPName, prodBeans, useBeansFlag,
privateFlag, invisibleServiceProviderIDs, displayOnCRMFlag, needServiceFlag, actFlag, actStatus,
actSort, actPrice0, actPrice1, actPrice2, actPrice3, actPrice4, actPrice5, actPrice6,
actPrice7, actType, actCreateTime, beginTime, endTime, shopIndexModuleID, onlineTime,
downlineTime, freePostFlag, crmBigTypeId, crmSmallTypeId, costPrice, costProportional,
costCheckFlag, precisehKey, docBoost, cmbeanFlag, cmbeanPrice, cmbeanSort, actBuyGiftNum,
actFullGiftAmount, actFullReduceAmount, actReduceAmount, visibility, surplusTime,
priceType, tags, recommendType, machineType
productDetailInfoID, productID, propValueAlias, propValueImages, detailInfo, detailInfoTxt,
seoTitle, seoKeyword, seoDes, serviceInfo, orderInfo
id, productId, userType, ladderNum, buyNum, buyPrice, createBy, createDate, updateBy,
updateDate, delFlag
productImageID, productID, shopID, addTime, image, mainFlag, sortIndex
shopID, userID, `name`, sname, nameEn, site, ledgerNo, logo, rebateAmount, `level`,
score, productCount, legalPerson, businessLicense, businessLicenseImage, taxCertificate,
taxCertificateImage, provinceID, cityID, townID, address, registeredCapital, nature,
turnover, linkMan, contractPhone, contractMobile, fax, zipCode, linkMan1, duty1,
contractPhone1, contractMobile1, contractQQ1, wechat1, contractEmail1, linkMan2,
duty2, contractPhone2, contractMobile2, contractQQ2, wechat2, contractEmail2, `scope`,
info, productDesc, lng, lat, addTime, auditStatus, auditTime, auditNote, favoriteTimes,
validFlag, payFlag1, auditFlag1, payFlag2, auditFlag2, payFlag3, auditFlag3, note,
`status`, sortIndex, rate1, rate2, masterFlag, erpFlag, shopSecret, masterLogo, cooperateFlag,
bail, businessScope, socialCreditCode, mainpro, firstShopType, secondShopType, medicalPracticeLicenseImg1,
medicalPracticeLicenseImg2, medicalPracticeLicenseImg3, bankAccount, bankAccountName,
bankName, ableRebateAmount,authorizationCertificateImage
update user_search_history
userId = #{userId,jdbcType=BIGINT},
searchWord = #{searchWord,jdbcType=VARCHAR},
searchDate = #{searchDate,jdbcType=TIMESTAMP},
delFlag = #{delFlag,jdbcType=VARCHAR},
where id = #{id,jdbcType=BIGINT}
UPDATE cm_second_hand_detail SET
viewingNum = #{viewingNum}
WHERE id = #{id}
UPDATE cm_second_hand_detail SET sold = 1 where productID = #{productID}
UPDATE product SET validFlag = #{validFlag} where productID = #{productID}
insert into user_search_history
userId,
searchWord,
searchDate,
delFlag,
#{userId,jdbcType=BIGINT},
#{searchWord,jdbcType=VARCHAR},
#{searchDate,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=VARCHAR},
INSERT INTO cm_second_hand_detail(
productID,
sold,
secondHandType,
instrumentType,
fixedYears,
maturityYears,
companyName,
detailTalkFlag,
originalPrice,
contactName,
contactMobile,
secondProductType,
townId,
brandName,
provinceCityDistrict,
address,
productQuality,
productDetails,
viewingNum,
payStatus,
payAmount,
payFormData,
payType,
payDate,
submitDate,
reviewedDate,
onLineDate,
source
) VALUES (
#{productID},
#{sold},
#{secondHandType},
#{instrumentType},
#{fixedYears},
#{maturityYears},
#{companyName},
#{detailTalkFlag},
#{originalPrice},
#{contactName},
#{contactMobile},
#{secondProductType},
#{townId},
#{brandName},
#{provinceCityDistrict},
#{address},
#{productQuality},
#{productDetails},
#{viewingNum},
#{payStatus},
#{payAmount},
#{payFormData},
#{payType},
#{payDate},
#{submitDate},
#{reviewedDate},
#{onLineDate},
#{source}
)
DELETE FROM user_search_history
WHERE userId=#{userId}
AND id NOT IN (
SELECT temp.id FROM (
SELECT id FROM user_search_history WHERE userId=#{userId} ORDER BY id DESC LIMIT 10
) AS temp
)
DELETE FROM
user_search_history
WHERE
userId=#{userId}