|
|
|
@ -88,6 +88,9 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
@Autowired |
|
|
|
|
private IDistributionStockService distributionStockService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private DistributionStockupMapper distributionStockupService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IDistributionStockListService distributionStockListService; |
|
|
|
|
|
|
|
|
@ -400,10 +403,19 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
List<PackageStockupVO> list = distributionParcelListService.selectOrderInfoList(reservationId, stockArticleId, stockupId, trayId); |
|
|
|
|
int size = list.size(); //数量
|
|
|
|
|
Integer scanNum = 0; |
|
|
|
|
DistributionStockupEntity byId = distributionStockupService.selectById(stockupId); |
|
|
|
|
for (PackageStockupVO vo : list) { |
|
|
|
|
if (!Objects.isNull(vo.getScanId())) { |
|
|
|
|
|
|
|
|
|
List<DistributionStockEntity> list1 = distributionStockService.list(Wrappers.<DistributionStockEntity>query().lambda() |
|
|
|
|
.eq(DistributionStockEntity::getCoding, vo.getPackageBarCode()) |
|
|
|
|
.eq(DistributionStockEntity::getParcelListId, vo.getParceListId()) |
|
|
|
|
); |
|
|
|
|
if(list1.size() > 0){ |
|
|
|
|
scanNum++; //已扫的数量
|
|
|
|
|
vo.setScanId(list1.get(0).getId()); |
|
|
|
|
vo.setIsScanStr("1"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//查询包件下面有没有具体的包件详情
|
|
|
|
|
String orderPackageCode = vo.getPackageBarCode(); |
|
|
|
|
QueryWrapper<DistributionParcelDetailsEntity> qw = new QueryWrapper<>(); |
|
|
|
@ -417,7 +429,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
vo.setAddress(reservationEntity.getDeliveryAddress()); //地址
|
|
|
|
|
vo.setPlanNum(size); //计划件数
|
|
|
|
|
vo.setScanNum(scanNum); //备货件数
|
|
|
|
|
vo.setStockupArea(reservationEntity.getGoodsAreaName()); //备货区
|
|
|
|
|
vo.setStockupArea(byId.getStockupArea()); //备货区
|
|
|
|
|
// vo.setWarehouseArea(stockupId); //库位
|
|
|
|
|
// vo.setTrays(pallet); //托盘
|
|
|
|
|
vo.setPackageList(list); //
|
|
|
|
|