| | |
| | | */ |
| | | public LocMast getLocNo2(WaitPakin waitPakin, Integer[] arr, Integer d, Integer locType, Integer locType1) { |
| | | LocMast locMast = null; |
| | | try { |
| | | //一.查询入库货物是否是特殊摆放货物 |
| | | if (locType == 2) { |
| | | //查找层标记的 |
| | |
| | | } |
| | | //该层没有找到库位时进入递归换层找库位 |
| | | if (Cools.isEmpty(locMast)) { |
| | | ++d; |
| | | if (d > 6) { |
| | | throw new CoolException("没有空库位"); |
| | | } |
| | | if (d == 6 && locType == 2) { |
| | | return getLocNo2(waitPakin, arr, 0, 1, locType1); |
| | | } |
| | | return getLocNo2(waitPakin, arr, d++, locType, locType1); |
| | | return getLocNo2(waitPakin, arr, d, locType, locType1); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return locMast; |
| | | } |
| | | |