From 5e4c141e378b31dd2465350adfd1ed99cce6b4cf Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期四, 15 五月 2025 17:12:23 +0800
Subject: [PATCH] 外置输送线wms通知输送线流动通过任务号告诉plc托盘长度
---
src/main/java/com/zy/asrs/task/TaskLogScheduler.java | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/src/main/java/com/zy/asrs/task/TaskLogScheduler.java b/src/main/java/com/zy/asrs/task/TaskLogScheduler.java
index 8ea8636..cf1083a 100644
--- a/src/main/java/com/zy/asrs/task/TaskLogScheduler.java
+++ b/src/main/java/com/zy/asrs/task/TaskLogScheduler.java
@@ -10,7 +10,6 @@
import com.zy.common.utils.Synchro;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -33,16 +32,9 @@
@Autowired
private TaskWrkReportService taskWrkReportService;
- @Value("${wms.url}")
- private String wmsUrl;
- @Value("${wms.TaskExecCallback}")
- private String TaskExecCallback;
-
-
- @Scheduled(cron = "0/3 * * * * ? ")
- public void execute() throws IOException {
-
+ @Scheduled(cron = "0/5 * * * * ? ")
+ public synchronized void execute() throws IOException {
for (TaskWrk taskWrk : taskWrkService.selectToBeHistoryData()) {
switch (taskWrk.getStatus()) {
case 4:
--
Gitblit v1.9.1