提交 2927f3f7 authored 作者: 许俊's avatar 许俊

修改

上级 4d0c8708
...@@ -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();
}*/ }
} }
...@@ -21,12 +21,12 @@ import java.io.IOException; ...@@ -21,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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论