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`,
goods_rate,
settle_price,
sku,
order_biz_type,
creater_sn,
create_time,
moder_sn,
mod_time
)
values
(
#{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},
#{goodsRate},
#{settlePrice},
#{sku,jdbcType=VARCHAR},
#{orderBizType,jdbcType=VARCHAR},
#{createrSn,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{moderSn,jdbcType=VARCHAR},
#{modTime,jdbcType=TIMESTAMP}
)
update mall_order_goods
`order_id` = #{order_id},
`goods_id` = #{goods_id},
`goods_name` = #{goods_name},
`goods_sn` = #{goods_sn},
`product_id` = #{product_id},
`number` = #{number},
`market_price` = #{market_price},
`retail_price` = #{retail_price},
`goods_specification_name_value` =
#{goods_specification_name_value},
`is_real` = #{is_real},
`goods_specification_ids` = #{goods_specification_ids},
`list_pic_url` = #{list_pic_url},
`goods_rate` = #{goodsRate},
`settle_price` = #{settlePrice},
sku = #{sku,jdbcType=VARCHAR},
order_biz_type = #{orderBizType,jdbcType=CHAR},
creater_sn = #{createrSn,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
moder_sn = #{moderSn,jdbcType=VARCHAR},
mod_time = #{modTime,jdbcType=TIMESTAMP}
where id = #{id}
delete from mall_order_goods where id = #{value}
delete from mall_order_goods where id in
#{id}