| | |
| | | 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")) { |
| | |
| | | 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")) { |
| | |
| | | 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; |
| | | } |
| | | } |