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, price, stock, aliasName, normalPrice, mainImage, productCategory, preferredFlag, shopId,
sellNumber, costPrice, costCheckFlag, costProportional, hasSkuFlag, validFlag, ladderPriceFlag, sortIndex, featuredFlag, byFlag,
step, actFlag, actStatus, freePostFlag, productType, machineType, includedTax, recommendType, invoiceType,
visibility, addTime, updateTime, onlineTime, downlineTime
) values (
#{brandId}, #{name}, #{price}, #{stock}, #{aliasName}, #{normalPrice}, #{mainImage}, #{productCategory},
#{preferredFlag}, #{shopId}, #{sellNumber}, #{costPrice}, #{costCheckFlag}, #{costProportional}, #{hasSkuFlag}, #{validFlag},
#{ladderPriceFlag}, #{sortIndex}, #{featuredFlag}, #{byFlag}, #{step}, #{actFlag}, #{actStatus},
#{freePostFlag}, #{productType}, #{machineType}, #{includedTax}, #{recommendType}, #{invoiceType},
#{visibility}, #{addTime}, #{updateTime}, #{onlineTime}, #{offlineTime}
)
insert into cm_second_file_type
(fileType,secondId,productId)
values (#{fileType},#{secondId},#{productId})
insert into shop (name,linkMan,contractMobile,cardNumber,addTime,status,shopType)
values (#{name},#{linkMan},#{contractMobile},#{cardNumber},now(),90,3)
UPDATE cm_second_hand_detail SET viewingNum = #{viewingNum}
WHERE productID = #{productId}