package com.fs.course.task;

import com.fs.statis.service.IStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @description: 看客相关统计定时任务
 * @author: Xgb
 * @createDate: 2025/10/27
 * @version: 1.0
 */
@Component("watchCourseStatistics")
public class WatchCourseStatistics {

    @Autowired
    private IStatisticsService statisticsService;

    /**
     * @Description: 统计统计按TimeType 0-今天，1-昨天，2-本周，3-本月，4-上月；各公司的观看人数和完播人数,
     * 各公司的观看人数和完播人数, 存到redis中，定时任务每15分钟执行一次
     *
     * @Param:
     * @Return:
     * @Author xgb
     * @Date 2025/10/27 11:47
     */
    public void watchCourseStatisticsGroupByCompany() {
        statisticsService.watchCourseStatisticsGroupByCompany();
    }
}
