xiaoyong931011
2023-08-07 c4957c48499e767280485216ef06f769e3ec7908
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>