UPDATE bp_order_product_cart set num = #{num}, addTime = #{addTime} WHERE id = #{id} INSERT INTO bp_order_product_cart (serviceProviderId, clubId, productId, num, addTime) VALUES (#{serviceProviderId}, #{clubId}, #{productId}, #{num}, #{addTime}) DELETE FROM bp_order_product_cart WHERE serviceProviderId = #{serviceProviderId} AND id in #{id}