自动化立体仓库 - WMS系统
#1
dubin
2025-12-20 db11805d2209fd37b24037fce159c7d5a39d8177
src/main/java/com/zy/common/web/WcsController.java
@@ -95,14 +95,14 @@
        }
        // 空托盘按照托盘码分配库位
//        else if (param.getIoType() == 10) {
//            if (Cools.isEmpty(param.getBarcode())) {
//                return R.error("条码不能为空");
//            }
//            if (!param.getBarcode().startsWith("6") && !param.getBarcode().startsWith("7") && !param.getBarcode().startsWith("8")){
//                return R.error("不存在的托盘类型");
//            }
//        }
        else if (param.getIoType() == 10) {
            if (Cools.isEmpty(param.getBarcode())) {
                return R.error("条码不能为空");
            }
            if (!param.getBarcode().startsWith("6") && !param.getBarcode().startsWith("7") && !param.getBarcode().startsWith("8")){
                return R.error("不存在的托盘类型");
            }
        }
        if (Cools.isEmpty(param.getLocType1())) {
@@ -445,8 +445,8 @@
        // 源站点状态检测
        BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true);
        // 检索库位
        StartupDto dto = commonService.getLocNoEmpty(1, 10, devpNo, null, null, null, locTypeDto);
//        StartupDto dto = commonService.getLocNoEmptyNew(1, 10, devpNo,locTypeDto,barcode);
//        StartupDto dto = commonService.getLocNoEmpty(1, 10, devpNo, null, null, null, locTypeDto);
        StartupDto dto = commonService.getLocNoEmptyNew(1, 10, devpNo,locTypeDto,barcode);
        int workNo = dto.getWorkNo();
        // 生成工作档
        WrkMast wrkMast = new WrkMast();