From f4214b3e0764ab116fc6975dbbc5bb4fc80f9fcd Mon Sep 17 00:00:00 2001 From: zhangchao <zc857179121@qq.com> Date: 星期四, 21 十一月 2024 16:08:15 +0800 Subject: [PATCH] rcs超时 --- src/main/java/com/zy/asrs/task/OrderSyncScheduler.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/OrderSyncScheduler.java b/src/main/java/com/zy/asrs/task/OrderSyncScheduler.java index 78f6ef6..8976c7f 100644 --- a/src/main/java/com/zy/asrs/task/OrderSyncScheduler.java +++ b/src/main/java/com/zy/asrs/task/OrderSyncScheduler.java @@ -81,9 +81,9 @@ } //@Scheduled(cron = "* 0/5 * * * ? ") - @Scheduled(cron = "0/5 * * * * ? ") - @Async("orderThreadPool") - public void reportOrder() { + @Scheduled(cron = "0/30 * * * * ? ") + //@Async("orderThreadPool") + public synchronized void reportOrder() { List<Order> orderList = orderService.selectList(new EntityWrapper<Order>().in("settle", 2, 4)); orderList.forEach(order -> { orderSyncHandler.timelyStart(order); -- Gitblit v1.9.1