a.id AS "id", a.productId AS "productId", a.limitedNum AS "limitedNum", a.unlimitedFlag AS "unlimitedFlag", a.memberNum AS "memberNum", a.status AS "status", a.addTime AS "addTime", s.name AS shopName, p.name AS productName, p.mainImage AS productImage left join product p on a.productId = p.productID left join cm_hehe_product chp on p.productID = chp.productId left join shop s on p.shopID = s.shopID INSERT INTO cm_hehe_collage_product(productId, limitedNum, unlimitedFlag, memberNum, status, addTime) VALUES ((select productId from cm_hehe_product where id = #{productId}), #{limitedNum}, #{unlimitedFlag}, #{memberNum}, #{status}, NOW()) insert into cm_hehe_collage_sku(skuId, productid, collageprice) values (#{skuId}, (select productId from cm_sku where skuId = #{skuId}), #{collagePrice}) UPDATE cm_hehe_collage_product SET productId = #{productId}, limitedNum = #{limitedNum}, unlimitedFlag = #{unlimitedFlag}, memberNum = #{memberNum}, status = #{status} WHERE id = #{id} update cm_hehe_collage_product set status = #{status} where id = #{id} update cm_hehe_collage_product set productId = #{newProductId} where productId = #{oldProductId} update cm_hehe_collage_sku set collagePrice=#{collagePrice} where skuId = #{skuId} DELETE FROM cm_hehe_collage_product WHERE id = #{id}