| | |
| | | |
| | | @Override |
| | | public Boolean isOutMost(String locNo, Boolean pakin) { |
| | | return Integer.parseInt(locNo.substring(0, 2)) == Utils.getOutermostRow(locNo, true); |
| | | return Integer.parseInt(locNo.substring(0, 2)) == Utils.getOutLayerRow(locNo, true); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } else { |
| | | rows = locNos.stream().map(item -> Integer.parseInt(item.substring(0, 2))).distinct().collect(Collectors.toList()); |
| | | } |
| | | for (String locNo : locNos) { |
| | | LocMast locMast = this.selectById(locNo); |
| | | for (int i = 0; i<locNos.size(); i++) { |
| | | LocMast locMast = this.selectById(locNos.get(i)); |
| | | if (locMast.getLocSts().equals("O")) { |
| | | return locMast; |
| | | if (i == 0) { |
| | | return locMast; |
| | | } else { |
| | | LocMast lastLoc = this.selectById(locNos.get(i - 1)); |
| | | if (lastLoc.getLocSts().equals("F") || lastLoc.getLocSts().equals("D") || lastLoc.getLocSts().equals("X")) { |
| | | return locMast; |
| | | } else { |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return null; |