| | |
| | | for (Integer row : locRowGroupDesc) { |
| | | String deepLocNo = Utils.getLocNo(row, Utils.getBay(locNo), Utils.getLev(locNo)); |
| | | LocMast deepLoc = locMastService.selectById(deepLocNo); |
| | | if (deepLoc == null) { |
| | | continue; |
| | | } |
| | | |
| | | if (deepLoc.getLocSts().equals("F")) { |
| | | continue; |
| | | } else if (deepLoc.getLocSts().equals("O")) { |
| | |
| | | List<Integer> levList = basCrnpService.getLevList(); |
| | | Collections.shuffle(levList); |
| | | |
| | | List<Integer> locLevList = locMastService.getLevList(); |
| | | levList.addAll(locLevList); |
| | | |
| | | for (Integer lev : levList) { |
| | | List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>() |
| | | .eq("loc_sts", "O") |
| | |
| | | for (Integer row : locRowGroupDesc) { |
| | | String deepLocNo = Utils.getLocNo(row, Utils.getBay(locNo), Utils.getLev(locNo)); |
| | | LocMast deepLoc = locMastService.selectById(deepLocNo); |
| | | if (deepLoc == null) { |
| | | continue; |
| | | } |
| | | |
| | | if (!deepLoc.getLocSts().equals("O")) { |
| | | flag = false; |
| | | break; |
| | |
| | | } |
| | | |
| | | if (flag) { |
| | | Integer firstRow = locRowGroupDesc.get(0); |
| | | String deepLocNo = Utils.getLocNo(firstRow, Utils.getBay(locNo), Utils.getLev(locNo)); |
| | | LocMast deepLoc = locMastService.selectById(deepLocNo); |
| | | targetLocMast = deepLoc; |
| | | for (Integer row : locRowGroupDesc) { |
| | | String deepLocNo = Utils.getLocNo(row, Utils.getBay(locNo), Utils.getLev(locNo)); |
| | | LocMast deepLoc = locMastService.selectById(deepLocNo); |
| | | if (deepLoc == null) { |
| | | continue; |
| | | } |
| | | |
| | | targetLocMast = deepLoc; |
| | | break; |
| | | } |
| | | break; |
| | | } |
| | | } |
| | |
| | | for (Integer row : locRowGroupDesc) { |
| | | String deepLocNo = Utils.getLocNo(row, Utils.getBay(locNo), Utils.getLev(locNo)); |
| | | LocMast deepLoc = locMastService.selectById(deepLocNo); |
| | | if (deepLoc == null) { |
| | | continue; |
| | | } |
| | | |
| | | if (deepLoc.getLocSts().equals("F")) { |
| | | continue; |
| | | } else if (deepLoc.getLocSts().equals("O")) { |
| | |
| | | List<Integer> levList = basCrnpService.getLevList(); |
| | | Collections.shuffle(levList); |
| | | |
| | | List<Integer> locLevList = locMastService.getLevList(); |
| | | levList.addAll(locLevList); |
| | | |
| | | for (Integer lev : levList) { |
| | | //相近物料匹配失败,搜索可用空库位组 |
| | | List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>() |
| | |
| | | for (Integer row : locRowGroupDesc) { |
| | | String deepLocNo = Utils.getLocNo(row, Utils.getBay(locNo), Utils.getLev(locNo)); |
| | | LocMast deepLoc = locMastService.selectById(deepLocNo); |
| | | if (deepLoc == null) { |
| | | continue; |
| | | } |
| | | |
| | | if (!deepLoc.getLocSts().equals("O")) { |
| | | flag = false; |
| | | break; |
| | |
| | | } |
| | | |
| | | if (flag) { |
| | | targetLocMast = locMast; |
| | | for (Integer row : locRowGroupDesc) { |
| | | String deepLocNo = Utils.getLocNo(row, Utils.getBay(locNo), Utils.getLev(locNo)); |
| | | LocMast deepLoc = locMastService.selectById(deepLocNo); |
| | | if (deepLoc == null) { |
| | | continue; |
| | | } |
| | | |
| | | targetLocMast = deepLoc; |
| | | break; |
| | | } |
| | | break; |
| | | } |
| | | } |