|  |  |  | 
|---|
|  |  |  | int row = getRow(shallowLoc); | 
|---|
|  |  |  | int remainder = (int) Arith.remainder(row, slaveProperties.getGroupCount()); | 
|---|
|  |  |  | int targetRow; | 
|---|
|  |  |  | //        if (remainder == 2) { | 
|---|
|  |  |  | //            targetRow = row - 1; | 
|---|
|  |  |  | //        } else if (remainder == 3) { | 
|---|
|  |  |  | //            targetRow = row + 1; | 
|---|
|  |  |  | //        } else { | 
|---|
|  |  |  | //            throw new RuntimeException(shallowLoc + "不是浅库位,系统繁忙"); | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | targetRow = row; | 
|---|
|  |  |  | if (remainder == 2) { | 
|---|
|  |  |  | targetRow = row - 1; | 
|---|
|  |  |  | } else if (remainder == 3) { | 
|---|
|  |  |  | targetRow = row + 1; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | throw new RuntimeException(shallowLoc + "不是浅库位,系统繁忙"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return zerofill(String.valueOf(targetRow), 2) + shallowLoc.substring(2); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //库位排号分配 | 
|---|
|  |  |  | public static int[] LocNecessaryParameters(Integer whsType, Integer curRow, Integer crnNumber) { | 
|---|
|  |  |  | switch (2){ | 
|---|
|  |  |  | switch (whsType){ | 
|---|
|  |  |  | case 1://经典双伸库位 | 
|---|
|  |  |  | return LocNecessaryParametersDoubleExtension(whsType, curRow, crnNumber); //已完善 | 
|---|
|  |  |  | case 2://经典单伸库位(2排货架) | 
|---|