From 8290f026467daac65699af0f8a9d9026e4ee7400 Mon Sep 17 00:00:00 2001 From: NH-LHG Date: Tue, 15 Aug 2023 10:53:57 +0800 Subject: [PATCH] =?UTF-8?q?[update]=E5=88=A0=E9=99=A4=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=AE=A2=E5=8D=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../erp/service/impl/JeecgJobServiceImpl.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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()订单失效处理结束......"); } }