package com.hzs.bonus.bonus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.member.bonus.CuMemberShareDetail;
import com.hzs.common.domain.member.ext.CuMemberShareDetailExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 会员奖金-分红奖金配置明细 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2023-07-03
 */
public interface CuMemberShareDetailMapper extends BaseMapper<CuMemberShareDetail> {

    /*
     * @description: 更新分享明细
     * @author: sui q
     * @date: 2023/7/3 14:11
     * @param: null null
     **/
    void saveMemberShareBonus(@Param("cuMemberShareDetailList") List<CuMemberShareDetailExt> cuMemberShareDetailList);

    /*
     * @description: 根据期间查询对应的奖衔 period当前月第一天
     * @author: sui q
     * @date: 2023/8/11 15:42
     * @param: null null
     **/
    List<CuMemberShareDetail> queryCuMemberShareBonusByPeriod(Integer period);
}
