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}
)
insert into mall_order_goods
(
`order_id`,
`goods_id`,
`goods_name`,
`goods_sn`,
`product_id`,
`number`,
`market_price`,
`retail_price`,
`discounted_price`,
`actual_payment_amount`,
`goods_specification_name_value`,
`is_real`,
`goods_specification_ids`,
`list_pic_url`,
is_dist_sell_scan,
tax_price,
store_topic_id,
goods_rate,
settle_price,
sku,
order_biz_type,
activity,
creater_sn,
create_time,
moder_sn,
mod_time
)
values
(
#{order_id},
#{goods_id},
#{goods_name},
#{goods_sn},
#{product_id},
#{number},
#{market_price},
#{retail_price},
#{discountedPrice},
#{actualPaymentAmount},
#{goods_specification_name_value},
#{is_real},
#{goods_specification_ids},
#{list_pic_url},
0,
#{taxPrice},
#{storeTopicId},
#{goodsRate},
#{settlePrice},
#{sku,jdbcType=VARCHAR},
#{orderBizType,jdbcType=VARCHAR},
#{activity},
#{createrSn,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{moderSn,jdbcType=VARCHAR},
#{modTime,jdbcType=TIMESTAMP}
)
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}