package com.hzs.report.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.member.achieve.ext.CuMemberAchieveExt;
import com.hzs.common.domain.member.base.CuMember;
import com.hzs.report.member.param.CuMemberUmbrellaParam;
import com.hzs.report.member.vo.CuMemberUmbrellaBalanceVO;
import com.hzs.report.member.vo.UmbrellaBelowPushVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员信息 Mapper 接口
 */
public interface MemberMapper extends BaseMapper<CuMember> {

    /**
     * 查询伞下账户余额
     **/
    List<CuMemberUmbrellaBalanceVO> selectUmbrellaLowerBalance(CuMemberUmbrellaBalanceVO umbrellaBalanceVO);

    /*
     * 用于反查统计分析，反差伞下，
     **/
    List<CuMemberAchieveExt> queryParentParentCuMemberAchieveExt(@Param("period") Integer period,
                                                                 @Param("param") CuMemberUmbrellaParam param);

    /**
     * 统计分析-伞下直推
     **/
    List<UmbrellaBelowPushVO> queryUmbrellaBelowPush(UmbrellaBelowPushVO umbrellaBelowPushVO);

    /**
     * 查询会员订单消费业绩
     **/
    List<UmbrellaBelowPushVO> queryOrderExpend(UmbrellaBelowPushVO umbrellaBelowPushVO);

}
