自动化立体仓库 - WMS系统
zhangc
2025-01-03 2fc477de92ef724cd37a79a3679c7d605adb94ab
src/main/java/com/zy/asrs/task/ReportDataScheduler.java
@@ -15,7 +15,6 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -56,6 +55,9 @@
    @Value("${mes.getTokenPath}")
    private String getTokenPath;
    @Value("${mes.stock}")
    private String stock;
    @Scheduled(fixedDelay = 5000)
@@ -118,4 +120,15 @@
        }
    }
    public void executeStock() {
        log.info("Stock定时任务开始执行");
        if (!flag) {
            return;
        }
        Map<String, Object> mesTokenInfo = getMesTokenInfo();
        reportDataHandler.stock(mesTokenInfo);
        log.info("Stock定时任务结束执行");
    }
}