xiaoyong931011
2023-05-29 02c885c7ae66d23625e98df3eb63a21bd5f8bc90
src/main/resources/mapper/dapp/DappMemberDao.xml
@@ -190,6 +190,7 @@
        select
            a.invite_id inviteId,
            a.account_type accountType,
            a.active_status activeStatus,
            b.ausd_amount ausdAmount,
            b.nft_devote nftDevote,
            b.amount amount,
@@ -232,7 +233,7 @@
    </select>
    <select id="selectAllAchieveByInviteId" resultType="java.math.BigDecimal">
        select sum(IFNULL(a.achieve_amount, 0))
        select IFNULL(sum(IFNULL(a.achieve_amount, 0)),0)
        from dapp_usdt_perk a
        inner join dapp_member b on a.member_id = b.id
        where find_in_set(#{inviteId}, b.referer_ids) or b.invite_id = #{inviteId}