diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/service/impl/JeecgJobServiceImpl.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/service/impl/JeecgJobServiceImpl.java index 15cf70d..4d0df02 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/service/impl/JeecgJobServiceImpl.java +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/service/impl/JeecgJobServiceImpl.java @@ -24,16 +24,16 @@ public class JeecgJobServiceImpl implements JeecgJobService { */ @Override @Async - @Scheduled(cron = "0 */5 * * * ?") + @Scheduled(cron = "0 */50 * * * ?") public void autoCancelOrder() { log.info("执行autoCancelOrder()订单失效处理开始......"); - List orderList = iOrderService.getTimeoutOrder(); - if (null != orderList && orderList.size() > 0) { - orderList.forEach(e -> { - e.setState(5); - }); - iOrderService.saveOrUpdateBatch(orderList); - } + //List orderList = iOrderService.getTimeoutOrder(); + //if (null != orderList && orderList.size() > 0) { + //orderList.forEach(e -> { + //e.setState(5); + //}); + //iOrderService.saveOrUpdateBatch(orderList); + //} log.info("执行autoCancelOrder()订单失效处理结束......"); } }