|  |  |  | 
|---|
|  |  |  | public static String getShallowLoc(SlaveProperties slaveProperties, String deepLoc) { | 
|---|
|  |  |  | int row = getRow(deepLoc); | 
|---|
|  |  |  | int remainder = (int) Arith.remainder(row, slaveProperties.getGroupCount()); | 
|---|
|  |  |  | int shallowRow = remainder == 1 ? (row + 1) : (row - 1); | 
|---|
|  |  |  | //        int shallowRow = remainder == 1 ? (row + 1) : (row - 1); | 
|---|
|  |  |  | int shallowRow = row; | 
|---|
|  |  |  | return zerofill(String.valueOf(shallowRow), 2) + deepLoc.substring(2); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static boolean BooleanWhsTypeStaIoType(Integer whsType) {  //查询相似物料开关 | 
|---|
|  |  |  | if (whsType == 1 || whsType==3 || whsType==4) { | 
|---|
|  |  |  | if (whsType == 1 ||whsType==2 || whsType==3 || whsType==4) { | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | 
|---|
|  |  |  | RowLastnoService rowLastnoService = SpringUtils.getBean(RowLastnoService.class); | 
|---|
|  |  |  | RowLastno rowLastno = rowLastnoService.selectById(whsType); | 
|---|
|  |  |  | Integer sRow = rowLastno.getsRow(); | 
|---|
|  |  |  | Integer eRow = rowLastno.geteRow(); | 
|---|
|  |  |  | Integer sCrnNo = rowLastno.getsCrnNo(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 判断仓库类型是否满足要求 | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 计算最深库位排和最浅库位排 | 
|---|
|  |  |  | int minRow = sRow;  // 起始排号 | 
|---|
|  |  |  | int maxRow = sRow + 7;  // 终止排号 (8排) | 
|---|
|  |  |  | int maxRow = eRow;  // | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 检查排号范围是否合法 | 
|---|
|  |  |  | if (curRow < minRow || curRow > maxRow) { | 
|---|