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