select id, create_time, create_by, update_time,top_settlement, update_by, wallet_address, recommend_id, indirect_user_id, buy_count, pay_coin, buy_amount, node_setting_id, status, user_id, hash, order_number, input_address, out_address, rebate, rbit_amount, rbit_one, rbit_two, nft_amount, nft_one, nft_two, illustrate from node_buy_log
insert into node_buy_log
create_time,
create_by,
update_time,
update_by,
wallet_address,
recommend_id,
indirect_user_id,
buy_count,
pay_coin,
buy_amount,
node_setting_id,
status,
user_id,
hash,
order_number,
input_address,
out_address,
rebate,
rbit_amount,
rbit_one,
rbit_two,
nft_amount,
nft_one,
nft_two,
illustrate,
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{walletAddress},
#{recommendId},
#{indirectUserId},
#{buyCount},
#{payCoin},
#{buyAmount},
#{nodeSettingId},
#{status},
#{userId},
#{hash},
#{orderNumber},
#{inputAddress},
#{outAddress},
#{rebate},
#{rbitAmount},
#{rbitOne},
#{rbitTwo},
#{nftAmount},
#{nftOne},
#{nftTwo},
#{illustrate},
update node_buy_log
top_settlement = #{topSettlement},
status = #{status},
user_id = #{userId},
hash = #{hash},
create_time = #{createTime},
where id = #{id}
delete from node_buy_log where id in
#{id}
update node_buy_log
top_settlement = 1
where id in
#{id}