xiaoyong931011
2022-06-17 aa36fd2b101de29185ece203083f675b19a27a2d
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -84,7 +84,7 @@
            (select sum(e.amount)
             from mall_order_info e
                      inner join mall_member b on e.member_id=b.ID
                      inner join mall_order_item c on e.id = c.order_id and c.is_normal=2
                      inner join mall_order_item c on e.id = c.order_id -- and c.is_normal=2
             where e.status in (2, 3, 4) and e.order_type=1 and (b.invite_id=a.invite_id or b.referrer_id=a.invite_id)) amount,
            (select count(1) from mall_member e
                      inner join mall_order_info b on e.id=b.member_id and b.status in (2, 3, 4)
@@ -395,4 +395,9 @@
            </if>
        </where>
    </select>
    <select id="selectMemberWithLevel" resultType="cc.mrbird.febs.mall.entity.MallMember">
        select * from mall_member
        where level=#{level}
    </select>
</mapper>