| | |
| | | */ |
| | | public static String getDeepLoc2(SlaveProperties slaveProperties, String shallowLoc) { |
| | | int row = getRow(shallowLoc); |
| | | boolean deepLocLeft = isDeepLoc(slaveProperties, row);//判断是否为深库位 |
| | | if (!deepLocLeft) { |
| | | boolean deepLoc = isDeepLoc(slaveProperties, row);//判断是否为深库位 |
| | | if (deepLoc) { |
| | | return null; |
| | | } |
| | | //4,7,11,15,19,23 |
| | | if (row == 4 || row == 7 || row == 11 || row == 15 || row == 19 || row == 23) { |
| | | return zerofill(String.valueOf(row + 1), 2) + shallowLoc.substring(2); |
| | | } else { |
| | | if (row == 1 || row == 6) { |
| | | return null; |
| | | } |
| | | //2,7,11,15,19,23 |
| | | if (row == 2 || row == 8 || row == 12 || row == 16 || row == 20 || row == 24) { |
| | | return zerofill(String.valueOf(row - 1), 2) + shallowLoc.substring(2); |
| | | } else { |
| | | return zerofill(String.valueOf(row + 1), 2) + shallowLoc.substring(2); |
| | | } |
| | | } |
| | | |