package com.hzs.bonus.account.mapper;

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

import java.util.List;

/**
 * <p>
 * 会员交易明细 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2022-09-06
 */
public interface CuMemberTradeMapper extends BaseMapper<CuMemberTrade> {

    /**
     * 批量获取cuMemberBonus主键
     *
     * @param rowNum 数量
     * @return: List<Integer>
     * @Author: sui q
     * @Date: 2022/12/13 13:47
     */
    List<Long> batchQueryCuMemberTradeSeq(Integer rowNum);

    /**
     * 批量插入会员交易流水，用于奖金发放插入流水
     *
     * @param cuMemberTradeList 交易流水
     * @return: void
     * @Author: sui q
     * @Date: 2023/3/21 11:45
     */
    void batchInsertCuMemberTrade(@Param("cuMemberTradeList") List<?> cuMemberTradeList);


}
