zwl
2025-07-05 9b6a50bf1288d2f7f06a67bec0c902d1256e44fe
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/CommonService.java
@@ -160,7 +160,7 @@
            List<LocMast> locMasts = locMastService.queryFreeLocMast2(locTypeDto.getLocType1(), locRule.getRowBeg(), locRule.getRowEnd(), locRule.getBayBeg(), locRule.getBayEnd(), locRule.getLevBeg(), locRule.getLevEnd(), hostId,WHS_TYPE);
            for (LocMast locMast0 : locMasts) {
                //预留空库位
                if (locMastService.checkEmptyCount(locMast0, 10, hostId)) {
                if (locMastService.checkEmptyCount(locMast0, 5, hostId)) {
                    return locMast0;
                }
            }
@@ -349,7 +349,29 @@
//                    innerLoc = null;
                    continue;
                }
                if(Utils.getRow(one.getLocNo())==2){
                    LocMast locMast1=locMastService.getOne(new LambdaQueryWrapper<LocMast>()
                            .eq(LocMast::getRow1, 1)
                            .eq(LocMast::getBay1,one.getBay1())
                            .eq(LocMast::getLev1,one.getLev1())
                            .eq(LocMast::getHostId, hostId));
                    if(!locMast1.getLocSts().equals("F")){
                        continue;
                    }else if (locMast1.getLocSts().equals("O")){
                        one=locMast1;
                    }
                }else if(Utils.getRow(one.getLocNo())==3){
                    LocMast locMast1=locMastService.getOne(new LambdaQueryWrapper<LocMast>()
                            .eq(LocMast::getRow1, 4)
                            .eq(LocMast::getBay1,one.getBay1())
                            .eq(LocMast::getLev1,one.getLev1())
                            .eq(LocMast::getHostId, hostId));
                    if(!locMast1.getLocSts().equals("F")){
                        continue;
                    }else if (locMast1.getLocSts().equals("O")){
                        one=locMast1;
                    }
                }
                innerLoc = one;
//                if (innerLoc == null) {