package com.ruoyi.productionPlan.task;
|
|
|
import com.ruoyi.productionPlan.service.ProductionPlanService;
|
import com.ruoyi.productionPlan.service.SalesDeliveryService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
|
//销售发货明细对接宜搭定时任务
|
@Component
|
public class SalesDeliveryTask {
|
|
|
@Autowired
|
private SalesDeliveryService salesDeliveryService;
|
|
@Scheduled(cron = "0 0 0 * * ?")
|
public void syncSalesDeliveryJob() {
|
salesDeliveryService.syncSalesDeliveryJob();
|
}
|
}
|