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
) 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}
)
insert into productimage (productID, shopID, addTime, image, mainFlag, sortIndex)
values (#{productId}, #{shopId}, #{addTime}, #{image}, #{mainFlag}, #{sortIndex})
insert into product (
brandId, name, price, price1, stock, aliasName, normalPrice, mainImage, productCategory, preferredFlag, shopId,
sellNumber, costPrice, costCheckFlag, hasSkuFlag, validFlag, ladderPriceFlag, sortIndex, featuredFlag, byFlag,
step, actFlag, actStatus, freePostFlag, productType, machineType, includedTax, recommendType, invoiceType,
visibility, addTime, updateTime, onlineTime, downlineTime
) values (
#{brandId}, #{name}, #{price}, #{price}, #{stock}, #{aliasName}, #{normalPrice}, #{mainImage}, #{productCategory},
#{preferredFlag}, #{shopId}, #{sellNumber}, #{costPrice}, #{costCheckFlag}, #{hasSkuFlag}, #{validFlag},
#{ladderPriceFlag}, #{sortIndex}, #{featuredFlag}, #{byFlag}, #{step}, #{actFlag}, #{actStatus},
#{freePostFlag}, #{productType}, #{machineType}, #{includedTax}, #{recommendType}, #{invoiceType},
#{visibility}, #{addTime}, #{updateTime}, #{onlineTime}, #{offlineTime}
)