package com.hzs.bonus.detail.mapper;

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

import java.util.List;

/**
 * 会员信息-等级升级记录 Mapper 接口
 */
public interface CuMemberLevelMapper extends BaseMapper<CuMemberLevel> {

    /**
     * 删除自动升级的等级升级记录
     *
     * @param period
     * @return
     */
    Integer deleteCuMemberGrade(@Param("period") Integer period);

    /**
     * 批量插入等级记录
     *
     * @param cuMemberLevelList 需要插入的等级列表
     */
    Integer saveBatchCuMemberLevel(@Param("cuMemberLevelList") List<CuMemberLevel> cuMemberLevelList);

}
