自动化立体仓库 - WMS系统
pang.jiabao
2024-09-18 64698c0ca92cf68da088c5d7f96a6fedaa1ea051
寻找库位优化
1个文件已修改
10 ■■■■ 已修改文件
src/main/java/com/zy/common/service/CommonService.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/service/CommonService.java
@@ -271,16 +271,16 @@
            //预留空库位
            Integer count = locMastMapper.selectCount(new EntityWrapper<LocMast>().eq("loc_sts", "O")
                    .eq("loc_type2", mast.getLocType2()).eq("crn_no", mast.getCrnNo()));
            if (tmp != null && count > 10) {
            if (tmp != null && count > 5) {
                locMast = tmp;
                break;
            }
        }
//        // 以上都没有合适的库位,则按顺序取一个空库位
//        if (locMast == null){
//            locMast = locMasts.get(0);
//        }
        // 以上都没有合适的库位,则按顺序取一个空库位
        if (locMast == null && !locMasts.isEmpty()){
            locMast = locMasts.get(0);
        }
//        if (locMast != null) {
//            log.info("-------------:找到了新库位【{}】", locMast.getLocNo());