package com.hzs.bonus.account.mapper;

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

import java.util.List;

/**
 * Mapper 接口
 */
public interface CuMemberTradeDetailMapper extends BaseMapper<CuMemberTradeDetail> {

    /**
     * 批量插入会员交易流水，用于奖金发放插入流水
     *
     * @param cuMemberTradeDetailList 交易流水
     */
    void batchInsertCuMemberTradeDetail(@Param("cuMemberTradeDetailList") List<?> cuMemberTradeDetailList);

    /**
     * 奖金可提现 根据期间发放奖金
     *
     * @param startPeriod 期间
     */
    void updateCuMemberTradeDetailByPeriod(@Param("startPeriod") Integer startPeriod, @Param("endPeriod") Integer endPeriod, @Param("pkCountry") Integer pkCountry);


}
