| | |
| | | |
| | | public static Integer getOutLayerRow(String locNo, Boolean pakin){ |
| | | int row = getRow(locNo); |
| | | // 入库 |
| | | if (pakin) { |
| | | if (CommonService.FIRST_GROUP_ROW_LIST.contains(row)) { |
| | | return 17; |
| | | } else if (CommonService.SECOND_GROUP_ROW_LIST.contains(row)) { |
| | | return 18; |
| | | } else { |
| | | return -1; |
| | | // throw new RuntimeException("库位解析异常"); |
| | | } |
| | | // 出库 |
| | | if (CommonService.FIRST_GROUP_ROW_LIST.contains(row)) { |
| | | return 4; |
| | | } else if (CommonService.SECOND_GROUP_ROW_LIST.contains(row)) { |
| | | return 5; |
| | | } else { |
| | | if (CommonService.FIRST_GROUP_ROW_LIST.contains(row)) { |
| | | return 2; |
| | | } else if (CommonService.SECOND_GROUP_ROW_LIST.contains(row)) { |
| | | return 30; |
| | | } else { |
| | | return -1; |
| | | // throw new RuntimeException("库位解析异常"); |
| | | } |
| | | return -1; |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(JSON.toJSONString(getGroupOutsideLoc("0500201"))); |
| | | System.out.println(JSON.toJSONString(getGroupOuterLoc("0500201"))); |
| | | } |
| | | |
| | | } |