gongchunyi
16 小时以前 f3cf05b74840f57f632af858ee27aab1d937cab8
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
package com.ruoyi.productionPlan.task;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
import com.ruoyi.productionPlan.service.ProductionPlanService;
 
/**
 * <br>
 * 销售生产需求定时任务
 * </br>
 *
 * @author deslrey
 * @version 1.0
 * @since 2026/03/09 17:02
 */
 
 
@Component
public class ProductionPlanTask {
 
    @Autowired
    private ProductionPlanService productionPlanService;
 
    @Scheduled(cron = "0 0 * * * ?")
    public void syncProdDataJob() {
        productionPlanService.syncProdDataJob();
    }
}