package com.hzs.bonus.bonus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.member.bonus.CuMemberBonusCoach;
import com.hzs.common.domain.member.ext.CuMemberBonusCoachExt;
import com.hzs.bonus.bonus.param.BonusParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员奖金-辅导收益明细表 Mapper 接口
 */
public interface CuMemberBonusCoachMapper extends BaseMapper<CuMemberBonusCoach> {

    /**
     * 删除会员奖金汇总表
     *
     * @param period 结算期间
     */
    void deleteCuMemberBonusCoach(Integer period);

    /**
     * 批量插入会员奖金主表
     *
     * @param cuMemberBonusCoachList 会员奖金
     */
    void batchInsertCuMemberBonusCoach(@Param("cuMemberBonusCoachList") List<?> cuMemberBonusCoachList);

    /**
     * 根据查询条件查询固定的奖金明细
     *
     * @param bonusParam 查询条件
     */
    List<CuMemberBonusCoachExt> queryMemberBonusCoachByBonusItems(BonusParam bonusParam);

    /**
     * 根据查询条件查询固定的奖金明细
     *
     * @param bonusParam 查询条件
     */
    List<CuMemberBonusCoachExt> queryMemberBonusCoachByBonusItemsForServer(@Param("bonusParam") BonusParam bonusParam);
}
