自动化立体仓库 - WMS系统
LSH
2024-03-25 bcdcebacdd2b58397c5f00f28983ad36e67ce9fe
src/main/java/com/zy/asrs/task/ReportToDismantleTheStackScheduler.java
@@ -1,7 +1,7 @@
package com.zy.asrs.task;
import com.zy.asrs.task.core.ReturnT;
import com.zy.asrs.task.handler.BarcodeUploadHandler;
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;
@@ -14,13 +14,13 @@
public class ReportToDismantleTheStackScheduler {
    @Autowired
    private BarcodeUploadHandler barcodeUploadHandler;
    private ReportToDismantleTheStackHandler reportToDismantleTheStackHandler;
    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute(){//条码上传中控
        int[] staNos =new int[]{216,220};
    private void execute(){//拆垛信息上传
        int[] staNos =new int[]{118,119,120,121};
        for (int staNo : staNos){
            ReturnT<String> result = barcodeUploadHandler.start(staNo);
            ReturnT<String> result = reportToDismantleTheStackHandler.start(staNo);
            if (result.getCode()==200){
                break;
            }