package com.hzs.member.achieve.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.core.utils.DateUtils;
import com.hzs.common.domain.member.achieve.CuMemberMonthAchieve;
import com.hzs.common.domain.member.achieve.CuMemberSettlePeriod;
import com.hzs.member.achieve.controller.vo.ParentAchieveVO;
import com.hzs.member.achieve.controller.vo.RealPerformanceVo;
import com.hzs.member.achieve.mapper.CuMemberMonthAchieveMapper;
import com.hzs.member.achieve.service.ICuMemberMonthAchieveService;
import com.hzs.member.achieve.service.ICuMemberSettlePeriodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

/**
 * 会员月数据 服务实现类
 */
@Service
public class CuMemberMonthAchieveServiceImpl extends ServiceImpl<CuMemberMonthAchieveMapper, CuMemberMonthAchieve> implements ICuMemberMonthAchieveService {

    @Autowired
    private ICuMemberSettlePeriodService cuMemberSettlePeriodService;

    /**
     * 查询会员真实业绩
     *
     * @param pkMember
     * @param achieveTable
     * @return
     */
    @Override
    public RealPerformanceVo queryCuMemberMonthAchieveInfo(Long pkMember, String achieveTable) {
        return baseMapper.queryCuMemberMonthAchieveInfo(pkMember, achieveTable);
    }

}
