insert into kuaishou_item_bind_user(item_id, user_id, user_name)
value
(#{itemId},#{userId},#{nikeName})
update kuaishou_supply_chain set order_status = #{cpsOrderStatus}
where oid = #{oid}
update kuaishou_supply_chain set order_status = #{cpsOrderStatus},total_regimental_settle_amount = regimental_promotion_amount
where oid = #{oid}
update kuaishou_item_list set activity_item_status = #{status} where item_id = #{itemId}
delete
from kuaishou_item_bind_user
where item_id = #{itemId}
replace into kuaishou_supply_chain(
oid,
item_id,
item_title,
reserve_price,
image_url,
order_status,
order_create_time,
send_status,
settlement_biz_type,
settlement_biz_type_desc,
send_time,
recv_time,
seller_id,
activity_id,
order_amount,
pay_amount,
regimental_promotion_rate,
share_rate,
base_amount,
service_amount,
regimental_promotion_amount,
total_regimental_settle_amount,
stat_date,
item_commission_rate,
promoter_id,
promoter_nick_name
)
values
(
#{add.oid},
#{add.itemId},
#{add.itemTitle},
#{add.reservePrice},
#{add.imageUrl},
#{add.orderStatus},
#{add.orderCreateTime},
#{add.sendStatus},
#{add.settlementBizType},
#{add.settlementBizTypeDesc},
#{add.sendTime},
#{add.recvTime},
#{add.sellerId},
#{add.activityId},
#{add.orderAmount},
#{add.payAmount},
#{add.regimentalPromotionRate},
#{add.shareRate},
#{add.baseAmount},
#{add.serviceAmount},
#{add.regimentalPromotionAmount},
#{add.totalRegimentalSettleAmount},
#{add.statDate},
#{add.itemCommissionRate},
#{add.promoterId},
#{add.promoterNickName}
)