自动化立体仓库 - WMS系统
Junjie
2023-10-07 bc899f1d6ff45d56f6cd206af471a14202bcda7d
src/main/java/com/zy/asrs/task/MesPakoutScheduler.java
@@ -4,9 +4,8 @@
import com.zy.asrs.task.handler.MesPakoutHandler;
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.io.IOException;
/**
 * 轮询MES接口,生成出库单据
@@ -18,15 +17,11 @@
    @Autowired
    MesPakoutHandler handler;
    //@Scheduled(cron = "0/30 * * * * ?")
    @Scheduled(cron = "0/30 * * * * ?")
    private void execute() {
        ReturnT<String> result = null;
        try {
            result = handler.start();
        } catch (IOException e) {
            e.printStackTrace();
        }
        result = handler.start();
        if (!result.isSuccess()) {
            log.error("");
        }