update dapp_wallet_coin
set
available_amount = available_amount + #{balance},
frozen_amount = frozen_amount - #{balance}
where
id = #{id}
and frozen_amount - #{balance} = ]]> 0
update dapp_wallet_coin
set
available_amount = available_amount - #{balance},
frozen_amount = frozen_amount + #{balance}
where
id = #{id}
and available_amount - #{balance} = ]]> 0
update dapp_wallet_coin
set
total_amount = total_amount - #{balance},
frozen_amount = frozen_amount - #{balance}
where
id = #{id}
and total_amount - #{balance} = ]]> 0
and frozen_amount - #{balance} = ]]> 0
update dapp_wallet_coin
set
total_amount = total_amount + #{balance},
available_amount = available_amount + #{balance}
where
id = #{id}
update dapp_wallet_coin
set
total_amount = total_amount - #{balance},
available_amount = available_amount - #{balance}
where
id = #{id}
and total_amount - #{balance} = ]]> 0
UPDATE dapp_wallet_coin
SET available_balance = available_balance - #{amount},
frozen_balance = frozen_balance + #{amount}
WHERE
id = #{id}
AND member_id = #{memberId}
UPDATE dapp_wallet_coin
SET available_balance = available_balance + #{amount},
frozen_balance = frozen_balance - #{amount}
WHERE
id = #{id}
AND member_id = #{memberId}
update dapp_wallet_coin
set
available_balance = IFNULL(available_balance, 0) + #{availableBalance},
total_balance = IFNULL(total_balance, 0) + #{availableBalance},
early_balance = IFNULL(early_balance, 0) + #{earlyBalance},
block_number = IFNULL(block_number, 0) + #{blockNumber}
where id=#{id}
update dapp_wallet_coin
set frozen_balance = frozen_balance - #{amount},
total_balance = total_balance - #{amount}
where id=#{id}
update dapp_wallet_coin
set
total_amount = total_amount + #{balance},
available_amount = available_amount + #{balance}
where
member_id = #{memberId}