insert ignore into mall_product
(`item_id`,`item_url`,`title`,`pic_url`,`price`,`month_sale`,`stock`,`shop_id`,`seller_id`)
values
(#{itemId},#{itemUrl},#{title},#{picUrl},#{price},#{monthSale},#{stock},#{shopId},#{sellerId})
update mall_product
set stock=stock-#{num}
where item_id=#{itemId}
update mall_product
set stock=stock+#{num}
where item_id=#{itemId}