| | |
| | | LocMast one = locMastService.selectById(locNos.get(0)); |
| | | List<Integer> rows = Utils.getGroupLoc(Integer.parseInt(locNos.get(0).substring(0, 2))); |
| | | List<LocMast> locMasts = locMastService.queryFreeLocMast(rows, rows.size(), one.getLocType1()); |
| | | |
| | | if (Cools.isEmpty(locMasts)) { |
| | | throw new CoolException("库位移转失败,已无空库位"); |
| | | } |
| | | // 入库排序 深库位 ==> 浅库位 |
| | | switch (locMasts.get(0).getRow1()) { |
| | | case 4: |
| | | case 5: |
| | | case 6: |
| | | case 7: |
| | | case 12: |
| | | case 13: |
| | | case 14: |
| | | case 19: |
| | | case 20: |
| | | case 21: |
| | | Collections.reverse(locMasts); |
| | | break; |
| | | default: |
| | | throw new IllegalStateException("Unexpected value: " + locMasts.get(0).getRow1()); |
| | | } |
| | | // 生成移库工作档 |
| | | |
| | | } |
| | | |