package com.hzs.report.report.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.member.achieve.CuMemberTree;
import com.hzs.common.domain.member.ext.CuMemberSettleExt;
import com.hzs.report.report.vo.ReportRecommendAchievementVo;

import java.util.List;

/**
 * 会员网体历史记录 服务类
 *
 * @author hzs
 * @since 2022-10-31
 */
public interface IReportCuMemberTreeService extends IService<CuMemberTree> {

    /**
     * 根据pkmember查询
     *
     * @param settleTableName
     * @param pkMember
     * @return
     */
    CuMemberSettleExt queryCuMemberTreeByPkMemberTable(String settleTableName, Long pkMember);

    /**
     * 查询会员直推伞下
     * @param settleTableName
     * @param pkMembers
     * @return
     */
    List<ReportRecommendAchievementVo> recommendAchievement(String settleTableName, List<Long> pkMembers);

    /**
     * 查询会员直推业绩
     * @param settleTableName
     * @param pkMembers
     * @return
     */
    List<ReportRecommendAchievementVo> listParentAchieve(String settleTableName, List<Long> pkMembers);
}
