xiaoyong931011
2023-02-09 e92b00089d8d57899df380135d79864dade09837
src/main/resources/mapper/dapp/DappWalletCoinDao.xml
@@ -121,7 +121,7 @@
            dapp_wallet_coin a
        inner join dapp_member b on a.member_id = b.id
        where a.total_amount <![CDATA[ >= ]]> 51
and b.identity != 'LEVEL_TM'
        and b.identity != 'LEVEL_TM'
    </select>
    <update id="addTotalAndaddAvailableByMemberId">
@@ -132,4 +132,25 @@
        where
            member_id = #{memberId}
    </update>
    <select id="selectByIdentity" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity">
        select
            b.id,
            b.invite_id,
            b.referer_id,
            b.identity,
            b.referer_ids
        from
            dapp_wallet_coin a
                inner join dapp_member b on a.member_id = b.id
        where b.identity != 'LEVEL_TM' and b.identity is not null
    </select>
    <update id="updateAmountToZero">
        update dapp_wallet_coin
        set
            total_amount = 0,
            available_amount = 0,
            frozen_amount = 0
    </update>
</mapper>