提交 4d0c8708 authored 作者: 许俊's avatar 许俊

添加注释

上级 818afb56
...@@ -11,11 +11,11 @@ import org.springframework.stereotype.Component; ...@@ -11,11 +11,11 @@ import org.springframework.stereotype.Component;
@Component @Component
@EnableScheduling @EnableScheduling
public class ProductionOrderTimed { public class ProductionOrderTimed {
@Autowired /* @Autowired
IProductionOrderService productionOrderService; IProductionOrderService productionOrderService;
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
@Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void job(){ public void job(){
productionOrderService.synchronization(); productionOrderService.synchronization();
} }*/
} }
...@@ -11,11 +11,11 @@ import org.springframework.stereotype.Component; ...@@ -11,11 +11,11 @@ import org.springframework.stereotype.Component;
@Component @Component
@EnableScheduling @EnableScheduling
public class ProductionSchedulingTimed { public class ProductionSchedulingTimed {
@Autowired /* @Autowired
IProductionSchedulingService productionSchedulingService; IProductionSchedulingService productionSchedulingService;
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
@Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void job(){ public void job(){
productionSchedulingService.synchronization(); productionSchedulingService.synchronization();
} }*/
} }
...@@ -8,6 +8,7 @@ import org.jeecg.modules.iost.API.service.ISalesOrderService; ...@@ -8,6 +8,7 @@ import org.jeecg.modules.iost.API.service.ISalesOrderService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
import org.springframework.aop.ThrowsAdvice;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
...@@ -20,12 +21,12 @@ import java.io.IOException; ...@@ -20,12 +21,12 @@ import java.io.IOException;
@Component @Component
@EnableScheduling @EnableScheduling
public class SalesOrderTimed { public class SalesOrderTimed {
@Autowired /* @Autowired
ISalesOrderService salesOrderService; ISalesOrderService salesOrderService;
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
@Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void job(){ public void job(){
salesOrderService.synchronization(); salesOrderService.synchronization();
} }
*/
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论