自动化立体仓库 - WMS系统
#
lsh
2025-02-20 4ad1f324ab1fd2b51504afc00b43b4ee40f029c2
src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java
@@ -45,7 +45,7 @@
    }};
    public static final List<Integer> STA_WORK_CU_CAR = new ArrayList<Integer>() {{
        add(118);add(119);add(120);add(121);
        add(118);add(120);add(121);
    }};
    public static final List<Integer> STA_WORK_CU_CAR_TWO = new ArrayList<Integer>() {{
@@ -55,15 +55,15 @@
        add(118);add(120);
    }};
    public static final List<Integer> STA_WORK_CU_CAR_FOUR  = new ArrayList<Integer>() {{
        add(119);add(121);
        add(121);
    }};
    public static final List<Integer> STA_WORK_RU = new ArrayList<Integer>() {{
        add(118);add(119);add(120);add(121);add(122);add(123);
        add(118);add(120);add(121);add(122);add(123);add(171);
    }};
    @Scheduled(cron = "0/3 * * * * ? ")
//    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute(){
        for(Integer staNo : STA_WORK_CU){
            try{
@@ -143,7 +143,7 @@
        }
    }
    @Scheduled(cron = "0/3 * * * * ? ")
//    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute2(){
        try{
            for(Integer staNo : STA_WORK_CU){
@@ -253,6 +253,7 @@
                        }
                        String origin = null;
                        boolean sign = false;
                        boolean sign101 = false;
                        if (wrkMast.getIoType()!=101){
                            List<WrkDetl> wrkDetls = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo());
                            if (!Cools.isEmpty(wrkDetls) && !wrkDetls.isEmpty()){
@@ -270,6 +271,8 @@
                                log.error("未查询到工作明细");
                                continue;
                            }
                        }else {
                            sign101 = true;
                        }
                        int count = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", wrkMastStaNo).or().eq("sta_end", wrkMastStaNo));
                        if (count!=0){
@@ -297,7 +300,7 @@
                            for (Integer staNoOther : STA_WORK_CU_CAR_NOW) {
                                if (staNoOther.equals(wrkMastStaNo)) continue;
                                if (sign){
                                if (sign && !sign101){
                                    if (Cools.isEmpty(origin)){
                                        continue;
                                    }