| | |
| | | StartupDto startupDto = null; |
| | | StringBuilder builder = new StringBuilder(); |
| | | try { |
| | | startupDto = searchLocNoByCrnNo(staDescId, sourceStaNo, findLocNoAttributeVo, locTypeDto); |
| | | startupDto = searchLocNoByCrnNo(staDescId, sourceStaNo, findLocNoAttributeVo, locTypeDto,barcode); |
| | | } catch (Exception e) { |
| | | builder.append(e.getMessage()).append(","); |
| | | } |
| | | |
| | | if(startupDto == null) { |
| | | builder.append("找不到空库位"); |
| | | builder.append("找不到空库位--->" + barcode); |
| | | throw new CoolException(builder.toString()); |
| | | } |
| | | |
| | |
| | | * @return locNo 检索到的库位号 |
| | | */ |
| | | @Transactional |
| | | public StartupDto searchLocNoByCrnNo(Integer staDescId, Integer sourceStaNo, FindLocNoAttributeVo findLocNoAttributeVo, LocTypeDto locTypeDto) { |
| | | public StartupDto searchLocNoByCrnNo(Integer staDescId, Integer sourceStaNo, FindLocNoAttributeVo findLocNoAttributeVo, LocTypeDto locTypeDto,String barcode) { |
| | | LocMast locMast = null; |
| | | if (staDescId == 10) { |
| | | //搜索空托盘 |
| | | locMast = searchEmptyPallet(locTypeDto); |
| | | // locMast = searchEmptyPallet(locTypeDto); |
| | | locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_sts","O").eq("barcode",barcode)); |
| | | |
| | | }else { |
| | | //满托盘 |
| | | locMast = searchMaxPallet(findLocNoAttributeVo, locTypeDto); |
| | | // locMast = searchMaxPallet(findLocNoAttributeVo, locTypeDto); |
| | | locMast = locMastService.selectOne(new EntityWrapper<LocMast>().in("loc_sts","O","P").eq("barcode",barcode)); |
| | | } |
| | | |
| | | if(locMast == null) { |