KKSU
2024-06-18 526394d6b8bc93d3e06b59feb8bbc871403dc089
src/main/resources/mapper/dapp/DappWalletMineDao.xml
@@ -18,4 +18,21 @@
            </if>
        </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>