package com.hzs.bonus.achieve.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.member.achieve.CuMemberSettlePeriod;
import com.hzs.common.domain.member.achieve.ext.CuMemberSettlePeriodExt;
import com.hzs.bonus.achieve.param.MemberPeriodParam;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 会员结算期间 服务类
 * </p>
 *
 * @author hzs
 * @since 2022-10-26
 */
public interface ICuMemberSettlePeriodService extends IService<CuMemberSettlePeriod> {

    void initCuMemberPeriod(String settleDate);

    /**
     * 根据日期获得日期对应的期间
     * @param date 日期 2023-02-02
    * @return: CuMemberSettlePeriod
    * @Author: sui q
    * @Date: 2022/11/2 13:32
    */
    CuMemberSettlePeriod getCuMemberSettlePeriodByDate(String date);

    /*
     * @description: 根据期间查询会员结算期间
     * @author: sui q
     * @date: 2024/2/25 10:20
     * @param: null null
     **/
    CuMemberSettlePeriod getCuMemberSettlePkPeriod(Integer pkPeriod);

    /**
     * 根据日期获得日期对应的期间
     * @param date 日期 2023-02-02
     * @return: CuMemberSettlePeriod
     * @Author: sui q
     * @Date: 2022/11/2 13:32
     */
    CuMemberSettlePeriodExt getCuMemberSettlePeriod(Integer pkCountry, Date date);

    /**
     * 根据国家查询奖金期数返回到前台
     * @return: List<CuMemberSettlePeriod>
     * @Author: sui q
     * @Date: 2023/1/30 17:27
     */
    List<CuMemberSettlePeriod> queryCuMemberSettlePeriod();

    /**
     * 根据国家查询奖金期数返回到前台
     * @param periodParam 查询参数
    * @return: List<CuMemberSettlePeriod>
    * @Author: sui q
    * @Date: 2023/1/30 17:27
    */
    List<CuMemberSettlePeriodExt> queryCuMemberSettlePeriod(MemberPeriodParam periodParam);

    /**
     * 根据时间更新会员结算期间状态
     * @param cuMemberSettlePeriodByDate 修改的期间
    * @Author: sui q
    * @Date: 2023/3/20 18:37
    */
    void updateCuMemberSettlePeriodByDate(CuMemberSettlePeriodExt cuMemberSettlePeriodByDate);

    /**
     * 根据日期列表查询期间列表
     *
     * @param dateList 日期列表（年月日）
     * @return
     */
    List<CuMemberSettlePeriodExt> queryPeriodList(List<String> dateList);

}
