select cart_id, live_id, user_id, goods_id, product_id, product_attr_value_id, cart_num, create_time, update_time, is_pay, is_del, is_buy, checked from live_cart
insert into live_cart
live_id,
user_id,
goods_id,
product_id,
product_attr_value_id,
cart_num,
create_time,
update_time,
is_pay,
is_del,
is_buy,
checked,
#{liveId},
#{userId},
#{goodsId},
#{productId},
#{productAttrValueId},
#{cartNum},
#{createTime},
#{updateTime},
#{isPay},
#{isDel},
#{isBuy},
#{checked},
update live_cart
live_id = #{liveId},
user_id = #{userId},
goods_id = #{goodsId},
product_id = #{productId},
product_attr_value_id = #{productAttrValueId},
cart_num = #{cartNum},
create_time = #{createTime},
update_time = #{updateTime},
is_pay = #{isPay},
is_del = #{isDel},
is_buy = #{isBuy},
checked = #{checked},
where cart_id = #{cartId}
delete from live_cart where cart_id = #{cartId}
delete from live_cart where cart_id in
#{cartId}
delete from live_cart where user_id = #{userId} and cart_id in
#{cartId}