*
L
昨天 741d8fea137649dd5a45d94f2573ca1bb8297c1f
src/main/java/com/zy/asrs/task/StaEscalationScheduler.java
@@ -1,7 +1,9 @@
package com.zy.asrs.task;
import com.zy.asrs.domain.enums.LedErrorAreaType;
import com.zy.asrs.task.core.ReturnT;
import com.zy.asrs.task.handler.StaEscalationHandler;
import com.zy.asrs.utils.LedErrorThreadUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
@@ -28,9 +30,42 @@
                    break;
                }
            }catch (Exception e){
                LedErrorThreadUtil.ledErrorThread("2楼翻转倒料上报erp失败!站点号:"+staNo,4, LedErrorAreaType.ONE_OTHER.getDesc());
                log.error("站点"+staNo+"2楼翻转倒料信息上传处理失败,异常信息:"+e);
            }
        }
    }
    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute3(){//1楼翻转半成品倒料信息上传
        int[] staNos =new int[]{536};
        for (int staNo : staNos){
            try{
                ReturnT<String> result = staEscalationHandler.start3(staNo);
                if (result.getCode()==200){
                    break;
                }
            }catch (Exception e){
                LedErrorThreadUtil.ledErrorThread("1楼翻转半成品倒料信息上传!站点号:"+staNo,4, LedErrorAreaType.ONE_OTHER.getDesc());
                log.error("站点"+staNo+"1楼翻转半成品倒料信息上传失败,异常信息:"+e);
            }
        }
    }
    @Scheduled(cron = "0/3 * * * * ? ")
    private void executeOverturn(){//2楼翻转倒料后回库标记清除
        int[] staNos =new int[]{126,131,310,312};
        for (int staNo : staNos){
            try{
                ReturnT<String> result = staEscalationHandler.start2(staNo);
                if (result.getCode()==200){
                    break;
                }
            }catch (Exception e){
                LedErrorThreadUtil.ledErrorThread("2楼翻转倒料后回库标记清除失败!站点号:"+staNo,4, LedErrorAreaType.ONE_OTHER.getDesc());
                log.error("站点"+staNo+"2楼翻转倒料后回库标记清除失败,异常信息:"+e);
            }
        }
    }
}