insert into cm_second_hand_detail(productID, sold, secondHandType, instrumentType, fixedYears, maturityYears, companyName, detailTalkFlag, originalPrice, contactName, contactMobile, dockingPeopleName, dockingPeopleMobile, secondProductType, townId, brandName, provinceCityDistrict, address, productQuality, productDetails, viewingNum, payStatus, payAmount, payFormData, payType, payDate, submitDate, reviewedDate, onLineDate, source, publisher, authenticationImage, fileName, ossName, commitmentImage, publishIdentity, licenseImage, authenticationBackImage) values (#{productId}, #{sold}, #{secondHandType}, #{instrumentType}, #{fixedYears}, #{maturityYears}, #{companyName}, #{detailTalkFlag}, #{originalPrice}, #{contactName}, #{contactMobile}, #{dockingPeopleName}, #{dockingPeopleMobile}, #{secondProductType}, #{townId}, #{brandName}, #{provinceCityDistrict}, #{address}, #{productQuality}, #{productDetails}, #{viewingNum}, #{payStatus}, #{payAmount}, #{payFormData}, #{payType}, #{payDate}, #{submitDate}, #{reviewedDate}, #{onLineDate}, #{source}, #{publisher}, #{authenticationImage}, #{fileName}, #{ossName}, #{commitmentImage}, #{publishIdentity}, #{licenseImage}, #{authenticationBackImage}) insert into productimage (productID, shopID, addTime, image, mainFlag, sortIndex) values (#{productId}, #{shopId}, #{addTime}, #{image}, #{mainFlag}, #{sortIndex}) insert into product (brandId, name, aliasName, mainImage, productCategory, preferredFlag, shopId, sellNumber, hasSkuFlag, validFlag, sortIndex, featuredFlag, byFlag, step, actFlag, actStatus, freePostFlag, productType, machineType, includedTax, recommendType, invoiceType, visibility, addTime, updateTime, onlineTime, downlineTime, announType) values (#{brandId}, #{name}, #{aliasName}, #{mainImage}, #{productCategory}, #{preferredFlag}, #{shopId}, #{sellNumber}, #{hasSkuFlag}, #{validFlag}, #{sortIndex}, #{featuredFlag}, #{byFlag}, #{step}, #{actFlag}, #{actStatus}, #{freePostFlag}, #{productType}, #{machineType}, #{includedTax}, #{recommendType}, #{invoiceType}, #{visibility}, #{addTime}, #{updateTime}, #{onlineTime}, #{offlineTime}, #{announType}) insert into cm_second_file_type (fileType, secondId, productId) values (#{fileType}, #{secondId}, #{productId}) insert into shop (name, linkMan, contractMobile, cardNumber, accountType, banOfDeposit, accountName, addTime, status, shopType) values (#{name}, #{linkMan}, #{contractMobile}, #{cardNumber}, #{accountType}, #{banOfDeposit}, #{accountName}, now(), 90, 0) UPDATE cm_second_hand_detail SET viewingNum = #{viewingNum} WHERE productID = #{productId}