| | |
| | | int sRow = rowLastno.getsRow(); |
| | | int eRow = rowLastno.geteRow(); |
| | | int crn_qty = rowLastno.getCrnQty(); |
| | | |
| | | int rowCount = eRow - sRow + 1; |
| | | // 获取目标站所在货架排号 |
| | | Shelves shelves = new Shelves(8, crn_qty); |
| | | Shelves shelves = new Shelves(rowCount, crn_qty); |
| | | curRow = shelves.start(curRow); |
| | | if (curRow < 0) { |
| | | throw new CoolException("检索库位失败,请联系管理员"); |
| | |
| | | if (staNo.getInEnable().equals("Y") && staNo.getAutoing().equals("Y") && inQty<2) { |
| | | // 查找库位 todo |
| | | LocMast locMast = locMastService.queryFreeLocMast(curRow, 1); |
| | | locNo = locMast.getLocNo(); |
| | | |
| | | rowLastno.setCurrentRow(curRow); |
| | | rowLastnoService.updateById(rowLastno); |
| | | } else { |
| | | throw new CoolException("目标站不可用"); |
| | | } |
| | | |
| | | |
| | | rowLastno.setCurrentRow(curRow); |
| | | rowLastnoService.updateById(rowLastno); |
| | | } |
| | | return locNo; |
| | | } |