package com.hzs.member.bonus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.member.bonus.CuMemberBonusPush;
import com.hzs.common.domain.member.ext.CuMemberBonusPushExt;
import com.hzs.member.marketnews.param.TripleCycleListParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 会员奖金-直推收益明细表 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2022-11-10
 */
public interface CuMemberBonusPushMapper extends BaseMapper<CuMemberBonusPush> {

    /**
     * 查询三单循环列表
     * @param tripleCycleListParam
     * @return
     */
    List<CuMemberBonusPushExt> tripleCycleList(TripleCycleListParam tripleCycleListParam);
    /**
     * 获取下一轮次
     * @param pkMember
     * @return
     */
    CuMemberBonusPush nextRound(@Param("pkMember") Long pkMember);
}
