| | |
| | | // 如果没有相近物料,则按规则轮询货架 |
| | | if (null == locMast) { |
| | | Shelves shelves = new Shelves(rowCount, crn_qty); |
| | | // 重库位 1 - 4排 |
| | | if (whsType == 1) { |
| | | for (int i = 0; i < shelves.group; i ++) { |
| | | curRow = shelves.start(curRow); |
| | |
| | | Integer crnNo1 = shelves.getCrnNo(curRow); |
| | | if (basCrnpService.checkSiteError(crnNo1, true)) { |
| | | crnNo = crnNo1; |
| | | if (curRow == 3 || curRow == 4) { |
| | | curRow = 3; |
| | | } |
| | | if (curRow == 5 || curRow == 6) { |
| | | curRow = 4; |
| | | } |
| | | if (curRow == 7 || curRow == 8) { |
| | | curRow = 5; |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | // // 轻库位 5 - 12排 |
| | | // } else { |
| | | // curRow = curRow - 4; |
| | | // for (int i = 0; i < shelves.group; i ++) { |
| | | // curRow = shelves.start(curRow); |
| | | // if (curRow < 0) { |
| | | // throw new CoolException("检索库位失败,请联系管理员"); |
| | | // } |
| | | // Integer crnNo1 = shelves.getCrnNo(curRow); |
| | | // if (basCrnpService.checkSiteError(crnNo1 + 1, true)) { |
| | | // // 偏移量补偿 |
| | | // curRow = curRow + 4; |
| | | // crnNo = crnNo1 + 1; |
| | | // break; |
| | | // } |
| | | // } |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |