package com.fs.task;

import com.fs.company.service.IStatisticManageService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @description:
 * @author: Guos
 * @time: 2025/11/3 下午4:12
 */
@AllArgsConstructor
@Component("comprehensiveStatisticsTask")
public class ComprehensiveStatisticsTask {

    @Resource
    private final IStatisticManageService iStatisticManageService;

    /**
     * 每隔一小时执行一次
     */
    public void execute() {
        iStatisticManageService.executeTask(null);
    }

}
