| | |
| | | if (locMasts.size() <= 4) { |
| | | switch (locType) { |
| | | case 0: |
| | | case 2: |
| | | return getLocNoRunNew(ioType, sourceSite, 3); |
| | | return getLocNoRunNew(ioType, sourceSite, 1); |
| | | case 1: |
| | | return getLocNoRunNew(ioType, sourceSite, 2); |
| | | case 2: |
| | | case 3: |
| | | throw new CoolException("当前库位剩余四个用于移库,无法占用:" + locType); |
| | | default: |
| | |
| | | locMast = first.get(); |
| | | } else { |
| | | // 深库位里面没有从浅库位里面取 |
| | | Optional<LocMast> first2 = locMasts.stream().filter(o -> o.getRow1() == 2 || o.getRow1() == 3 || o.getRow1() == 5 || o.getRow1() == 7).findFirst(); |
| | | Optional<LocMast> first2 = locMasts.stream().filter(o -> o.getRow1() == 2 || o.getRow1() == 3 || o.getRow1() == 6 || o.getRow1() == 7).findFirst(); |
| | | if(first2.isPresent()) { |
| | | locMast = first2.get(); |
| | | } |