自动化立体仓库 - WMS系统
#
18516761980
2021-09-09 77897585d6d29a7018e9510db8dbe07f2db3330b
src/main/java/com/zy/ints/task/WaitMatoutLogScheduler.java
@@ -7,6 +7,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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;
@@ -22,12 +23,18 @@
    @Autowired
    private WaitMatoutService waitMatoutService;
    @Autowired
    private WaitMatoutLogHandler waitMatOutLogHandler;
    /**
     * ERP接口是否启用
     */
    @Value("${erp.enabled}")
    private Boolean erpEnabled;
    @Scheduled(cron = "0/4 * * * * ? ")
    private void execute(){
        if(!erpEnabled) return;
        List<WaitMatout> waitMatouts = waitMatoutService.selectWaitMatOutBySts();
        for (WaitMatout waitMatout : waitMatouts) {
            ReturnT<String> result = waitMatOutLogHandler.start(waitMatout);