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`,
`deduction_score`
)
values
(
#{orderId},
#{goodsId},
#{goodsName},
#{goodsSn},
#{productId},
#{number},
#{marketPrice},
#{retailPrice},
#{goodsSpecificationNameValue},
#{isReal},
#{goodsSpecificationIds},
#{listPicUrl},
#{deductionScore}
)
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,
deduction_score,
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},
#{deductionScore},
#{goodsRate},
#{settlePrice},
#{sku,jdbcType=VARCHAR},
#{orderBizType,jdbcType=VARCHAR},
#{activity},
#{createrSn,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{moderSn,jdbcType=VARCHAR},
#{modTime,jdbcType=TIMESTAMP}
)
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`,
`deduction_score`,
`order_biz_type`,
`activity`,
`creater_sn`,
`create_time`,
`moder_sn`,
`mod_time`
)
values
(
#{item.order_id},
#{item.goods_id},
#{item.goods_name},
#{item.goods_sn},
#{item.product_id},
#{item.number},
#{item.market_price},
#{item.retail_price},
#{item.discountedPrice},
#{item.actualPaymentAmount},
#{item.goods_specification_name_value},
#{item.is_real},
#{item.goods_specification_ids},
#{item.list_pic_url},
0,
#{item.taxPrice},
#{item.storeTopicId},
#{item.goodsRate},
#{item.settlePrice},
#{item.sku,jdbcType=VARCHAR},
#{item.deductionScore},
#{item.orderBizType,jdbcType=VARCHAR},
#{item.activity},
#{item.createrSn,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP},
#{item.moderSn,jdbcType=VARCHAR},
#{item.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}