insert into mall_order_goods
(
`order_id`,
`goods_id`,
`goods_name`,
`goods_sn`,
`product_id`,
`number`,
`market_price`,
`retail_price`,
`goods_specification_name_value`,
`is_real`,
`goods_specification_ids`,
`list_pic_url`
)
values
(
#{orderId},
#{goodsId},
#{goodsName},
#{goodsSn},
#{productId},
#{number},
#{marketPrice},
#{retailPrice},
#{goodsSpecificationNameValue},
#{isReal},
#{goodsSpecificationIds},
#{listPicUrl}
)
update mall_order_goods
`order_id` = #{orderId},
`goods_id` = #{goodsId},
`goods_name` = #{goodsName},
`goods_sn` = #{goodsSn},
`product_id` = #{productId},
`number` = #{number},
`market_price` = #{marketPrice},
`retail_price` = #{retailPrice},
`goods_specification_name_value` =
#{goodsSpecificationNameValue},
`is_real` = #{isReal},
`goods_specification_ids` = #{goodsSpecificationIds},
`list_pic_url` = #{listPicUrl}
where id = #{id}
delete from mall_order_goods where id = #{value}
delete from mall_order_goods where id in
#{id}