package com.hzs.member.statis.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.member.achieve.CuMemberAchieve;
import com.hzs.common.domain.member.bonus.CuMemberBonus;
import com.hzs.common.domain.sale.order.SaOrder;
import com.hzs.member.statis.ICuBonusStatisServiceApi;
import com.hzs.member.statis.service.ICuBonusStatisService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;


/**
 * @description: 奖金拨比统计Dubbo 服务
 * @author: zhang jing
 * @date: 2023/6/1 17:25
 * @param:
 * @return:
 **/
@Slf4j
@DubboService
public class ICuBonusStatisServiceProvider implements ICuBonusStatisServiceApi {

    @Autowired
    ICuBonusStatisService iCuBonusStatisService;

    /**
     * @description: 统计历史奖金拨比
     * @author: zhang jing
     * @date: 2023/10/19 9:29
     * @param: [startDate, endDate]
     * @return: com.hzs.common.core.domain.R
     **/
    @Override
    public R statisHistoryBonus(String startDate, String endDate) {
        return R.ok(iCuBonusStatisService.statisHistoryBonus(startDate, endDate));
    }

    /**
     * @description: 删除奖金拨比统计数据
     * @author: zhang jing
     * @date: 2023/12/11 10:56
     * @param: [startDate, endDate]
     * @return: com.hzs.common.core.domain.R
     **/
    @Override
    public R delStatis(String startDate, String endDate) {
        return R.ok(iCuBonusStatisService.delStatis(startDate, endDate));
    }

}
