| | |
| | | return 1; |
| | | } |
| | | |
| | | @Override |
| | | public LocMast findNearloc(String locNo) { |
| | | int row = getRow(locNo); |
| | | LocMast locMast = null; |
| | | if (row>19) { |
| | | List<String> groupOuterLoc = Utils.getGroupOuterLoc(locNo); |
| | | if (!Cools.isEmpty(groupOuterLoc)) { |
| | | locMast = this.baseMapper.selectAvailableNearLocDesc(groupOuterLoc); |
| | | } |
| | | |
| | | }else { |
| | | List<String> groupOuterLoc = Utils.getGroupOuterLoc(locNo); |
| | | if (!Cools.isEmpty(groupOuterLoc)) { |
| | | locMast = this.baseMapper.selectAvailableNearLocAsc(groupOuterLoc); |
| | | } |
| | | } |
| | | return locMast; |
| | | } |
| | | |
| | | /** |
| | | * 通过库位号获取 排 |
| | | */ |
| | | public static int getRow(String locNo) { |
| | | if (!Cools.isEmpty(locNo)) { |
| | | return Integer.parseInt(locNo.substring(0, 2)); |
| | | } |
| | | throw new RuntimeException("库位解析异常"); |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> selectAllPeakLoc() { |
| | | return this.baseMapper.selectAllPeakLoc(); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean checkAllLocEmpty(List<String> groupOuterLoc) { |
| | | List<LocMast> result = this.baseMapper.selectAllLocNotEmpty(groupOuterLoc); |
| | | return result.size() <= 0; |
| | | } |
| | | |
| | | } |