自动化立体仓库 - WMS系统
pang.jiabao
2024-08-13 4559444158b9ab3c29fb578e5dac6788ddccd53e
src/main/java/com/zy/asrs/task/ReportToOKScheduler.java
@@ -1,7 +1,6 @@
package com.zy.asrs.task;
import com.zy.asrs.task.core.ReturnT;
import com.zy.asrs.task.handler.ReportToDismantleTheStackHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -13,18 +12,15 @@
@Component
public class ReportToOKScheduler {
    @Autowired
    private ReportToDismantleTheStackHandler reportToDismantleTheStackHandler;
//    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute(){//拆垛完成信息处理
        int[] staNos =new int[]{118,119,120,121};
        for (int staNo : staNos){
            ReturnT<String> result = reportToDismantleTheStackHandler.start(staNo);
            if (result.getCode()==200){
                break;
            }
        }
//        int[] staNos =new int[]{118,119,120,121};
//        for (int staNo : staNos){
//            ReturnT<String> result = reportToDismantleTheStackHandler.start(staNo);
//            if (result.getCode()==200){
//                break;
//            }
//        }
    }
}