package com.ruoyi.production.task;
|
|
import com.ruoyi.production.service.ProductMaterialService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* <br>
|
*
|
* </br>
|
*
|
* @author deslrey
|
* @version 1.0
|
* @since 2026/03/11 16:39
|
*/
|
@Component
|
public class ProductMaterialTask {
|
|
@Autowired
|
private ProductMaterialService productMaterialService;
|
|
@Scheduled(cron = "0 0 * * * ?")
|
public void syncProdDataJob() {
|
productMaterialService.syncProductMaterialJob();
|
}
|
}
|