| | |
| | | end = 21; |
| | | |
| | | //203站分配2,3堆垛机 |
| | | crnNos.add(2); |
| | | // crnNos.add(2); |
| | | crnNos.add(3); |
| | | |
| | | //分配8,14,15,21排 |
| | |
| | | |
| | | if (!sign){ |
| | | //----------------2023.06.02兼容代码,后期库位规则符合要求后可删除------------------------ |
| | | //如果以上都找不到库位,则强制搜索1、2堆垛机空库位进行入库,保障3号堆垛机库位都是符合要求的 |
| | | //如果以上都找不到库位,则强制搜索2堆垛机空库位进行入库,保障3号堆垛机库位都是符合要求的 |
| | | EntityWrapper<LocMast> wrapper = new EntityWrapper<>(); |
| | | wrapper.eq("loc_type1", locTypeDto.getLocType1()); |
| | | wrapper.in("crn_no", "2"); |
| | |
| | | //内侧其他库位不是D、F、X。不能选取该库位 |
| | | continue; |
| | | } |
| | | if(sourceStaNo==103 && mast.getRow1()>7) |
| | | { |
| | | continue; |
| | | } |
| | | if(sourceStaNo==203 && mast.getRow1()<8) |
| | | { |
| | | continue; |
| | | } |
| | | if(sourceStaNo==103 && mast.getRow1()>14) continue; |
| | | if(sourceStaNo==103 && mast.getRow1()<8) continue; |
| | | if(sourceStaNo==203 && mast.getRow1()<15) continue; |
| | | //找到库位,返回dto |
| | | locMast=mast; |
| | | sign = true; |