zhang
2025-07-23 d127e27168d07199b0d4d55c0a5d431761f490d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.zy.acs.manager.core.scheduler;
 
import com.zy.acs.common.utils.RedisSupport;
import com.zy.acs.framework.common.SnowflakeIdWorker;
import com.zy.acs.manager.core.service.MainLockWrapService;
import com.zy.acs.manager.core.service.MainService;
import com.zy.acs.manager.core.service.TrafficService;
import com.zy.acs.manager.manager.entity.TaskReport;
import com.zy.acs.manager.manager.service.*;
import com.zy.acs.manager.system.service.ConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
 
import java.util.List;
 
@Slf4j
@Component
public class ReportThirdScheduler {
 
 
    @Autowired
    private TaskReportService taskReportService;
 
 
//    @Scheduled(fixedDelay = 1000)
    public void execute() {
//        List<TaskReport> list = taskReportService.list();
//        for (TaskReport taskReport : list) {
//            report(taskReport);
//        }
    }
 
    @Transactional
    public void report(TaskReport taskReport) {
        //TODO 原先应该调用接口,现在直接修改数据
 
    }
}