KKSU
2024-06-21 b3b3baf9a3b0147ca38476450ca1823c291abd20
src/main/resources/mapper/dapp/DappWalletMineDao.xml
@@ -19,10 +19,20 @@
        </where>
    </select>
    <update id="updateBalance">
        update dapp_wallet_mine
        set total_amount = total_amount + #{totalAmount},
            available_amount = available_amount + #{availableAmount}
        where member_id=#{memberId}
    </update>
    <update id="updateWithLock">
        update dapp_wallet_mine
        set total_amount=#{record.totalAmount},
            available_amount=#{record.availableAmount},
            version=version+1
        where id=#{record.id} and version=#{record.version}
    </update>
</mapper>