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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.member.bonus.CuMemberBonus;
import com.hzs.member.bonus.mapper.CuMemberBonusMapper;
import com.hzs.member.bonus.service.ICuMemberBonusService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 会员奖金-会员奖金汇总表 服务实现类
 * </p>
 *
 * @author hzs
 * @since 2022-11-11
 */
@Service
@Slf4j
public class CuMemberBonusServiceImpl extends ServiceImpl<CuMemberBonusMapper, CuMemberBonus> implements ICuMemberBonusService {

    /**
     * @description: 查询当天小区新增数据
     * @author: zhang jing
     * @date: 2023/5/17 14:54
     * @param: [cuMemberBonus]
     * @return: java.util.List<java.lang.Long>
     **/
    @Override
    public List<Long> queryMemberBonusByTime(int period) {
        return baseMapper.queryMemberBonusByTime(period);
    }

    /**
     * @description: 查询某一期奖金汇总数据
     * @author: zhang jing
     * @date: 2023/8/15 15:20
     * @param: [period]
     * @return: java.util.List<com.hzs.common.domain.member.bonus.CuMemberBonus>
     **/
    @Override
    public List<CuMemberBonus> queryMemberBonusByPeriod(Integer period,String startDate,String endDate,Integer pkCountry) {
        return baseMapper.queryMemberBonusByPeriod(period,startDate,endDate,pkCountry);
    }

}
