| | |
| | | |
| | | List<LocMast> locMasts = locMastService.queryFreeLocMast2(locTypeDto.getLocType1(), locRule.getRowBeg(), locRule.getRowEnd(), locRule.getBayBeg(), locRule.getBayEnd(), locRule.getLevBeg(), locRule.getLevEnd()); |
| | | for (LocMast locMast0 : locMasts) { |
| | | LocMast locMast1 = locMastService.findInnerLoc(locMast0.getLocNo());//检测同库位组深库位是否有空闲库位 |
| | | if (locMast1 != null) { |
| | | //预留空库位 |
| | | if (locMastService.checkEmptyCount(locMast0, 10)) { |
| | | return locMast0; |
| | | if (locMastService.checkEmptyCount(locMast1, 10)) { |
| | | return locMast1; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | List<LocMast> locMasts = locMastService.queryFreeLocMast2(locTypeDto.getLocType1(), locRule.getRowBeg(), locRule.getRowEnd(), locRule.getBayBeg(), locRule.getBayEnd(), locRule.getLevBeg(), locRule.getLevEnd()); |
| | | for (LocMast locMast0 : locMasts) { |
| | | LocMast locMast1 = locMastService.findInnerLoc(locMast0.getLocNo());//检测同库位组深库位是否有空闲库位 |
| | | if (locMast1 != null) { |
| | | //预留空库位 |
| | | if (locMastService.checkEmptyCount(locMast0, 10)) { |
| | | return locMast0; |
| | | if (locMastService.checkEmptyCount(locMast1, 10)) { |
| | | return locMast1; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | //再判断库存明细档,料号相同的明细库位 |
| | | List<String> locNos = locDetlService.getSameDetl(matNos.get(0)); |
| | | for (String locNo : locNos) { |
| | | LocMast locMast0 = locMastService.findNearloc(locNo); |
| | | LocMast locMast0 = locMastService.findInnerLoc(locNo); |
| | | if (null != locMast0) { |
| | | // 浅库位符合尺寸检测 |
| | | if (VersionUtils.checkLocType(locMast0, locTypeDto)) { |