自动化立体仓库 - WMS系统
#
zzgtfwq
1 天以前 8ea4c0fa09a08ec40e5f453bcde0fc7397b15b0d
src/main/java/com/zy/common/web/WcsController.java
@@ -398,7 +398,16 @@
        List<String> batchs = waitPakins.stream().map(WaitPakin::getBatch).distinct().collect(Collectors.toList());
        FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(matnrs.get(0), batchs.get(0));
//        FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(waitPakins.get(0));
        StartupDto dto = commonService.getLocNo( 1, devpNo,findLocNoAttributeVo, locTypeDto);
        StartupDto dto = null;
        try{
            dto = commonService.getLocNo( 1, devpNo,findLocNoAttributeVo, locTypeDto);
        } catch (Exception e){
            throw new CoolException("查询库位失败!!==》"+e.getMessage());
        }
        if (Cools.isEmpty(dto)){
            throw new CoolException("查询库位失败!!==》startupFullPutStore ==》 commonService.getLocNo");
        }
        int workNo = dto.getWorkNo();
        Date now = new Date();
        // 生成工作档
@@ -474,8 +483,15 @@
        BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true);
        // 检索库位
        FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo();
        StartupDto dto = commonService.getLocNo( 10, devpNo, findLocNoAttributeVo, locTypeDto);
        StartupDto dto = null;
        try{
            dto = commonService.getLocNo( 10, devpNo, findLocNoAttributeVo, locTypeDto);
        } catch (Exception e){
            throw new CoolException("查询库位失败!!==》"+e.getMessage());
        }
        if (Cools.isEmpty(dto)){
            throw new CoolException("查询库位失败!!==》startupFullPutStore ==》 commonService.getLocNo");
        }
        int workNo = dto.getWorkNo();
        // 生成工作档
        WrkMast wrkMast = new WrkMast();