自动化立体仓库 - WMS系统
#
LSH
2024-01-05 46793d6a0e430a290ffc02ff0460342361cd7f32
src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java
@@ -46,12 +46,31 @@
            BasDevp basDevp = basDevpService.selectById(staNo);
            if (basDevp.getWrkNo()!=0){
                WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", basDevp.getWrkNo()));
                if (wrkMast.getWrkSts()!=14 && wrkMast.getWrkSts()!=15){
                    continue;
                }
                boolean wrkTypeSign = fullKM(wrkMast);
                if (!Cools.isEmpty(wrkMast)){
                    ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp);
                    if (result.getCode()==200){
                        continue;
                    }else {
                        System.out.println(staNo+"失败!");
                    if (wrkTypeSign) {
//                        ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,11);//1:取(叠盘)
//                        if (result.getCode()==200){
//                            continue;
//                        }else {
//                            System.out.println(staNo+"失败!");
//                        }
                        ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,13);//3:取放
                        if (result.getCode()==200){
                            continue;
                        }else {
                            System.out.println(staNo+"失败!");
                        }
                    } else {
                        ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,13);//3:取放
                        if (result.getCode()==200){
                            continue;
                        }else {
                            System.out.println(staNo+"失败!");
                        }
                    }
                }
            }
@@ -61,11 +80,18 @@
            BasDevp basDevp = basDevpService.selectById(staNo);
            if (basDevp.getWrkNo()!=0){
                WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", basDevp.getWrkNo()));
                if (wrkMast.getWrkSts()!=2){
                    continue;
                }
                boolean wrkTypeSign = fullKM(wrkMast);
                if (wrkTypeSign){
                    boolean equals = wrkMast.getIoType().equals(1);
                }
                if (!Cools.isEmpty(wrkMast)){
                    ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp);
                    if (result.getCode()==200){
                    ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,2);
                    if (result.getCode()==200) {
                        continue;
                    }else {
                    } else {
                        System.out.println(staNo+"失败!");
                    }
                }
@@ -73,4 +99,11 @@
        }
    }
    public boolean fullKM(WrkMast wrkMast){
        if (wrkMast.getIoType()!=10 && wrkMast.getIoType()!=110){
            return true;
        }
        return false;
    }
}