package com.hzs.bonus.bonus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.bonus.bonus.param.BonusExpandParam;
import com.hzs.common.domain.member.bonus.CuBonusExpand;
import com.hzs.common.domain.member.ext.CuBonusExpandExt;

import java.util.List;

/**
 * 服务类
 *
 * @author hzs
 * @since 2024-07-19
 */
public interface ICuBonusExpandService extends IService<CuBonusExpand> {

    /*
     * @description: 查询4-n配置
     * @author: sui q
     * @date: 2024/7/23 10:09
     * @param: null null
     **/
    List<CuBonusExpandExt> queryBonusExpand(BonusExpandParam bonusExpandParam);

    /*
     * @description: 查询日期是否标红
     * @author: sui q
     * @date: 2024/7/24 10:59
     * @param: null null
     **/
    List<CuBonusExpandExt> queryBonusExpandDis(BonusExpandParam bonusExpandParam);

    /*
     * @description: 奖金计算时，先拉取昨日4-n 碰次，先用该碰次计算
     * @author: sui q
     * @date: 2024/7/19 14:22
     * @param: null null
     **/
    void firstSaveCuBonusExpand(BonusExpandParam bonusExpandParam);

    /*
     * @description: 奖金计算结束，统计波比、业绩
     * @author: sui q
     * @date: 2024/7/22 11:27
     * @param: null null
     **/
    void updateCuBonusExpandRatio(BonusExpandParam bonusExpandParam, String tableName);

    /*
     * @description: 保存或修改昨日4-n碰次
     * @author: sui q
     * @date: 2024/7/19 14:22
     * @param: null null
     **/
    void saveCuBonusExpand(BonusExpandParam bonusExpandParam);

    /*
     * @description: 重算首购奖金
     * @author: sui q
     * @date: 2024/7/23 11:59
     * @param: null null
     **/
    void repeatCuBonusByExpand(BonusExpandParam bonusExpandParam);
}
