自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-09-06 1133454469cca577f9f333af47abada48f149e6e
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -196,6 +196,7 @@
            }
        }
        Integer ioType = null;
        List<String> excludeLocNos = dtos.stream().map(OutLocDto::getLocNo).distinct().collect(Collectors.toList());
        // 生成工作档
        for (OutLocDto dto : dtos) {
            // 如果为深库位,且对应浅库位为X.禁用,则略过此库位
@@ -213,6 +214,7 @@
                ioType = 107;
            }
            assert ioType != null;
            locMastService.breakUp(dto.getLocNo(), excludeLocNos);
            // 获取库位
            LocMast locMast = locMastService.selectById(dto.getLocNo());
            // 获取路径
@@ -951,8 +953,9 @@
        }
        Date now = new Date();
        // 生成移库工作档
        Iterator<LocMast> iterator = locMasts.iterator();
        for (String sourceLocNo : locNos) {
            Iterator<LocMast> iterator = locMasts.iterator();
            while (iterator.hasNext()) {
                LocMast sourceLoc = locMastService.selectById(sourceLocNo);
                List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>().eq("loc_no", sourceLocNo));