xiaoyong931011
2023-08-11 75cd0d8aff31f28596a5b52c2686bc2afee46589
src/main/resources/mapper/dapp/DappWalletCoinDao.xml
@@ -141,6 +141,15 @@
            member_id = #{memberId}
    </update>
    <update id="reduceTotalAndAvailableByMemberId">
        update dapp_wallet_coin
        set
            total_amount = total_amount - #{balance},
            available_amount = available_amount - #{balance}
        where
            member_id = #{memberId}
    </update>
    <select id="selectAmountThanZero" resultType="cc.mrbird.febs.dapp.entity.DappWalletCoinEntity">
        select * from dapp_wallet_coin where available_amount > 0
    </select>