xiaoyong931011
2023-08-06 65cf739fe077c398d35e58a083a1c7be40a3b7a2
src/main/resources/mapper/dapp/DappMemberDao.xml
@@ -23,6 +23,9 @@
            <if test="record.accountStatus != null">
                and a.account_status = #{record.accountStatus}
            </if>
            <if test="record.accountType != null and record.accountType != ''">
                and a.account_type = #{record.accountType}
            </if>
            <if test="record.changeAble != null">
                and a.change_able = #{record.changeAble}
            </if>
@@ -190,6 +193,8 @@
        select
            a.invite_id inviteId,
            a.account_type accountType,
            a.active_status activeStatus,
            a.node_type nodeType,
            b.ausd_amount ausdAmount,
            b.nft_devote nftDevote,
            b.amount amount,
@@ -232,7 +237,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}
@@ -242,4 +247,70 @@
        select * from dapp_member
            where active_status = 1
    </select>
    <select id="selectByNodetype" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity">
        select * from dapp_member
            where node_type = 1
    </select>
    <select id="selectAddress" resultType="java.lang.String">
        select
            address
        from dapp_member where active_status  = 1
    </select>
    <select id="selectMallGoodsListQueryInPage" resultType="cc.mrbird.febs.dapp.vo.MallGoodsListVo">
        select
        a.*
        from mall_goods a
        where a.is_sale = 1
        group by a.id
        order by a.sort_cnt asc
    </select>
    <select id="selectMallOrderListQueryInPage" resultType="cc.mrbird.febs.dapp.vo.MallOrderListVo">
        select a.*
        from mall_order_info a
        <where>
            a.member_id = #{record.memberId}
            <if test="record != null">
                <if test="record.status != null and record.status != ''">
                    and a.status = #{record.status}
                </if>
            </if>
        </where>
        order by a.create_time desc
    </select>
    <select id="selectMallOrderListVoById" resultType="cc.mrbird.febs.dapp.vo.MallOrderListVo">
        select a.*
        from mall_order_info a
        where id = #{orderId}
        order by a.create_time desc
    </select>
    <select id="selectMallOrderItemVoByOrderId" resultType="cc.mrbird.febs.dapp.vo.MallOrderItemVo">
        select a.*
        from mall_order_item a
        where orderId = #{orderId}
    </select>
    <select id="selectMallGoodsListVoById" resultType="cc.mrbird.febs.dapp.vo.MallGoodsListVo">
        select
            a.*
        from mall_goods a
        where a.id = #{goodsId}
    </select>
    <select id="selectInviteLeft" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity">
        select * from dapp_member where invite_left = #{inviteId}
    </select>
    <select id="selectInviteRight" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity">
        select * from dapp_member where invite_right = #{inviteId}
    </select>
    <select id="selectMemberByActiveStatus" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity">
        select * from dapp_member where active_status = 1
    </select>
</mapper>