自动化立体仓库 - WMS系统
#
Junjie
2025-06-08 26dd2deb404109df6621e0b61b0ff9f06c83d9c3
src/main/java/com/zy/common/web/WcsController.java
@@ -87,6 +87,15 @@
        BasDevp sourceStaNo = basDevpService.checkSiteStatus(param.getSourceStaNo(), true);
        sourceStaNo.setLocType1(param.getLocType1());
        LocTypeDto locTypeDto = new LocTypeDto(sourceStaNo);
        if (param.getBarcode().startsWith("11")) {
            locTypeDto.setLocType2((short) 1);
        }else if (param.getBarcode().startsWith("13")) {
            locTypeDto.setLocType2((short) 2);
        }else if (param.getBarcode().startsWith("16")) {
            locTypeDto.setLocType2((short) 3);
        }else {
            return R.error("未知托盘码规则");
        }
        StartupDto dto = null;
        switch (param.getIoType()) {
@@ -179,6 +188,9 @@
//        dto.setWorkNo(Integer.parseInt(Math.random() * 1000 + ""));
        StartupDto dto = commonService.getLocNo( 1, devpNo,findLocNoAttributeVo, locTypeDto);
        if (dto == null) {
            throw new CoolException("找不到空库位");
        }
        int workNo = dto.getWorkNo();
        Date now = new Date();
        // 生成工作档