package com.hzs.report.report.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.member.achieve.CuMemberTree;
import com.hzs.common.domain.member.ext.CuMemberSettleExt;
import com.hzs.report.report.mapper.CuMemberTreeMapper;
import com.hzs.report.report.service.ICuMemberTreeService;
import com.hzs.report.report.vo.RecommendAchievementVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 会员网体历史记录 服务实现类
 *
 */
@Slf4j
@Service
public class CuMemberTreeServiceImpl extends ServiceImpl<CuMemberTreeMapper, CuMemberTree> implements ICuMemberTreeService {

    @Override
    public CuMemberSettleExt queryCuMemberTreeByPkMemberTable(String settleTableName, Long pkMember) {
        return baseMapper.queryCuMemberTreeByPkMemberTable(settleTableName, pkMember);
    }


    @Override
    public List<RecommendAchievementVo> recommendAchievement(String settleTableName, List<Long> pkMembers) {
        return baseMapper.recommendAchievement(settleTableName, pkMembers);
    }


    @Override
    public List<RecommendAchievementVo> listParentAchieve(String settleTableName, List<Long> pkMembers) {
        return baseMapper.listParentAchieve(settleTableName, pkMembers);
    }

}
