chenlu
2025-12-05 fd290b7ac3821bd2c3f7e1549c4af14ce3137be1
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();
//    }
}