xiaoyong931011
2023-08-12 7086b6ef40388aeb95235b73447cf03ffcdc583d
src/main/resources/mapper/dapp/DappWalletCoinDao.xml
@@ -140,4 +140,17 @@
        where
            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>
</mapper>