From 6fd276e85c43c6445840caa6e2891b7d3230490a Mon Sep 17 00:00:00 2001
From: 18516761980 <4761516tqsxp>
Date: 星期四, 02 九月 2021 15:48:04 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/ints/task/WaitMatoutLogScheduler.java | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/main/java/com/zy/ints/task/WaitMatOutLogScheduler.java b/src/main/java/com/zy/ints/task/WaitMatoutLogScheduler.java
similarity index 64%
rename from src/main/java/com/zy/ints/task/WaitMatOutLogScheduler.java
rename to src/main/java/com/zy/ints/task/WaitMatoutLogScheduler.java
index 7afc313..89ccbbb 100644
--- a/src/main/java/com/zy/ints/task/WaitMatOutLogScheduler.java
+++ b/src/main/java/com/zy/ints/task/WaitMatoutLogScheduler.java
@@ -1,12 +1,9 @@
package com.zy.ints.task;
import com.zy.asrs.task.core.ReturnT;
-import com.zy.ints.entity.WaitMatin;
import com.zy.ints.entity.WaitMatout;
-import com.zy.ints.entity.WaitMatoutLog;
-import com.zy.ints.service.WaitMatoutLogService;
import com.zy.ints.service.WaitMatoutService;
-import com.zy.ints.task.handler.WaitMatOutLogHandler;
+import com.zy.ints.task.handler.WaitMatoutLogHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -15,23 +12,27 @@
import java.util.List;
+/**
+ * 鍑哄簱閫氱煡妗h浆鍘嗗彶妗�
+ * Created by TQS on 2021/8/31
+ */
@Component
-public class WaitMatOutLogScheduler {
- private static final Logger log = LoggerFactory.getLogger(WaitMatOutLogScheduler.class);
+public class WaitMatoutLogScheduler {
+ private static final Logger log = LoggerFactory.getLogger(WaitMatoutLogScheduler.class);
@Autowired
private WaitMatoutService waitMatoutService;
@Autowired
- private WaitMatOutLogHandler waitMatOutLogHandler;
+ private WaitMatoutLogHandler waitMatOutLogHandler;
- @Scheduled(cron = "0/3 * * * * ? ")
+ @Scheduled(cron = "0/4 * * * * ? ")
private void execute(){
List<WaitMatout> waitMatouts = waitMatoutService.selectWaitMatOutBySts();
for (WaitMatout waitMatout : waitMatouts) {
ReturnT<String> result = waitMatOutLogHandler.start(waitMatout);
if (!result.isSuccess()) {
- log.error("鍑哄簱閫氱煡妗billNo={}],[seqNo={}]鍘嗗彶妗e鐞嗗け璐�", waitMatout.getBillNo(),waitMatout.getSeqNo());
+ log.error("鍑哄簱閫氱煡妗billNo={},seqNo={}]鍘嗗彶妗e鐞嗗け璐�", waitMatout.getBillNo(),waitMatout.getSeqNo());
}
}
}
--
Gitblit v1.9.1