guoyujie
2025-11-18 e70dec0b370563c443d426624829a4fc481895d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.example.erp.scheduling;
 
import com.example.erp.service.pp.ReportingWorkService;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
@Component
@RequiredArgsConstructor
public class ScheduledTasks {
    private final ReportingWorkService reportingWorkService;
 
//    @Scheduled( fixedRate = 2*60*1000)
//    public void reportingWorkRedisToMysql() throws InterruptedException {
//        reportingWorkService.redisToMysqlReportingWork();
//    }
}