From e35c3d097d91d5aea14f862bd14ef455c096d080 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sun, 28 Aug 2022 02:22:19 +0800 Subject: [PATCH] fix --- src/main/resources/mapper/dapp/DappWalletCoinDao.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/dapp/DappWalletCoinDao.xml b/src/main/resources/mapper/dapp/DappWalletCoinDao.xml index f1b9c56..346a02d 100644 --- a/src/main/resources/mapper/dapp/DappWalletCoinDao.xml +++ b/src/main/resources/mapper/dapp/DappWalletCoinDao.xml @@ -18,4 +18,12 @@ </if> </where> </select> + + <update id="updateWithLock"> + update dapp_wallet_coin + set total_amount=#{record.totalAmount}, + available_amount=#{record.availableAmount}, + version=version+1 + where id=#{record.id} and version=#{record.version} + </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1