| New file |
| | |
| | | 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(); |
| | | // } |
| | | } |