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