From e57e89707d57d0af0ff8ed9f470f7450105ed4c0 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期日, 06 七月 2025 14:48:50 +0800 Subject: [PATCH] 1 --- src/main/java/com/zy/asrs/task/OrderSyncScheduler.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/OrderSyncScheduler.java b/src/main/java/com/zy/asrs/task/OrderSyncScheduler.java index fad8d68..8003028 100644 --- a/src/main/java/com/zy/asrs/task/OrderSyncScheduler.java +++ b/src/main/java/com/zy/asrs/task/OrderSyncScheduler.java @@ -9,13 +9,11 @@ import com.zy.asrs.task.core.ReturnT; import com.zy.asrs.task.handler.OrderSyncHandler; import com.zy.common.entity.Parameter; -import com.zy.common.utils.Synchro; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; -import java.util.HashMap; import java.util.List; /** @@ -53,6 +51,9 @@ @Autowired private DocTypeService docTypeService; + @Autowired + private AgvWrkDetlService agvWrkDetlService; + private Integer page = 1; private Integer size = 200; @@ -67,7 +68,7 @@ } //@Scheduled(cron = "0/5 * * * * ? ") - @Scheduled(fixedDelay = 600000) + //@Scheduled(fixedDelay = 600000) //@Async("orderThreadPool") public void completeAndReport() { String erpReport = Parameter.get().getErpReport(); @@ -81,7 +82,7 @@ Boolean flag = false; for (OrderDetl orderDetl : orderDetlList) { List<AgvLocDetl> agvLocDetls = agvLocDetlService.selectList(new EntityWrapper<AgvLocDetl>().eq("matnr", orderDetl.getMatnr()).eq("three_code", orderDetl.getThreeCode())); - if (!Cools.isEmpty(agvLocDetls)) { + if (!Cools.isEmpty(agvLocDetls) ) { //鍙鏈変竴椤硅鍗曟槑缁嗗瓨鍦紝鍒欐爣璇嗕负true锛岃烦杩囪璁㈠崟 flag = true; } @@ -100,7 +101,7 @@ //@Scheduled(cron = "* 0/5 * * * ? ") //@Scheduled(cron = "0/30 * * * * ? ") - @Scheduled(fixedDelay = 30000) + //@Scheduled(fixedDelay = 30000) //@Async("orderThreadPool") public synchronized void reportOrder() { DocType docType = docTypeService.selectOne(new EntityWrapper<DocType>().eq("doc_name", "閾跺骇閲囪喘鍏ュ簱鍗�")); @@ -136,7 +137,6 @@ page++; } } - } -- Gitblit v1.9.1