| | |
| | | start = 12; |
| | | end = 21; |
| | | |
| | | //203站分配3,4堆垛机 |
| | | //203站分配2,3堆垛机 |
| | | crnNos.add(2); |
| | | crnNos.add(3); |
| | | crnNos.add(4); |
| | | |
| | | //分配14,15,21排 |
| | | rows.add(14); |
| | |
| | | private LocMast getLocNoStep3(LocTypeDto locTypeDto, List<Integer> crnNos) { |
| | | LocMast locMast = null; |
| | | //找最外侧空库位 |
| | | LocMast locMast0 = locMastService.findOutMast(locTypeDto.getLocType1(), crnNos); |
| | | if (locMast0 != null) { |
| | | List<LocMast> locMasts = locMastService.findOutMast(locTypeDto.getLocType1(), crnNos); |
| | | for (LocMast locMast0 : locMasts) { |
| | | //检测当前库位内侧其他库位是否为R或S(出入库预约状态) |
| | | List<String> insideLoc = Utils.getGroupInsideLoc(locMast0.getLocNo()); |
| | | List<LocMast> insideLocMast = locMastService.selectByLocNos(insideLoc); |
| | | for (LocMast mast : insideLocMast) { |
| | | if (mast.getLocSts().equals("R") || mast.getLocSts().equals("S")) { |
| | | //R或S(出入库预约状态,不能选定这个外侧库位) |
| | | continue; |
| | | } |
| | | } |
| | | |
| | | // 浅库位符合尺寸检测 |
| | | if (VersionUtils.locMoveCheckLocType(locMast0, locTypeDto)) { |
| | | // 浅库位对应堆垛机必须可用且无异常 |