package com.hzs.member.bonus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.member.bonus.CuMemberBonus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 会员奖金-会员奖金汇总表 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2022-11-11
 */
public interface CuMemberBonusMapper extends BaseMapper<CuMemberBonus> {

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

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

    /*
     * @description: 查询会员一周周期的拓展累计，复购拓展累计
     * @author: sui q
     * @date: 2023/7/15 14:26
     * @param: null null
     **/
    List<CuMemberBonus> queryWeekMemberBonus(@Param("startPeriod") int startPeriod, @Param("endPeriod") int endPeriod);
}
