|
|
|
@ -1668,6 +1668,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
loadscanEntity.setLoadedNub(parcelNumberVO.getReservationNum()); |
|
|
|
|
} |
|
|
|
|
loadscanEntity.setTrainNumber(distributionDeliveryListEntity.getTrainNumber()); |
|
|
|
|
loadscanEntity.setWarehouseId(myCurrentWarehouse.getId()); |
|
|
|
|
loadscanEntity.setWarehouseName(myCurrentWarehouse.getName()); |
|
|
|
|
loadscanEntity.setIsZero(1); |
|
|
|
|
distributionLoadscanService.save(loadscanEntity); |
|
|
|
|
|
|
|
|
|
//更新装车数量
|
|
|
|
@ -1710,7 +1713,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
loadscanServiceOne.setLoadedNub(parcelNumberVO.getReservationNum()); |
|
|
|
|
} |
|
|
|
|
distributionLoadscanService.updateById(loadscanServiceOne); |
|
|
|
|
lingdans.add(loadscanServiceOne); |
|
|
|
|
distributionParcelNumberService.updateById(parcelNumberEntity); |
|
|
|
|
//维护零担订单在库 以及维护状态
|
|
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleService.getById(parcelNumberVO.getStockArticleId()); |
|
|
|
@ -4149,6 +4151,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
DistributionDeliveryTripartiteEntity tripartiteEntity = Func.copy(tripartite, DistributionDeliveryTripartiteEntity.class); |
|
|
|
|
tripartiteEntity.setDeliveryId(deliveryListEntity.getId()); |
|
|
|
|
distributionDeliveryTripartiteService.save(tripartiteEntity); |
|
|
|
|
deliveryListEntity.setPrice(tripartite.getDeliveryFee()); |
|
|
|
|
deliveryListEntity.setDistributionCompany(tripartite.getDistributionCompany()); |
|
|
|
|
deliveryListEntity.setDistributionCompanyId(tripartite.getDistributionCompanyId()); |
|
|
|
|
deliveryListEntity.setDriverName(tripartiteEntity.getDriverName()); |
|
|
|
@ -6537,7 +6540,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
|
|
|
|
|
for (DistributionLoadscanEntity distributionLoadscanEntity : pushNodeList) { |
|
|
|
|
|
|
|
|
|
Map<String, Object> broadcastDataByZeroOrderAndParcId = baseMapper.getBroadcastDataByZeroOrderAndParcId(distributionLoadscanEntity.getDeliveryId(), distributionLoadscanEntity.getWarehouseId(), distributionLoadscanEntity.getPackageId()); |
|
|
|
|
Map<String, Object> broadcastDataByZeroOrderAndParcId = baseMapper.getBroadcastDataByZeroOrderAndParcId(distributionLoadscanEntity.getDeliveryId(), distributionDeliveryListEntity.getWarehouseId(), distributionLoadscanEntity.getPackageId()); |
|
|
|
|
if(ObjectUtil.isNotEmpty(broadcastDataByZeroOrderAndParcId)){ |
|
|
|
|
PackageData packageData = BeanUtil.copy(broadcastDataByZeroOrderAndParcId, PackageData.class); |
|
|
|
|
assert packageData != null; |
|
|
|
@ -10694,6 +10697,13 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
nodeFanoutMsg.setTenantId(AuthUtil.getTenantId()); |
|
|
|
|
FinishDistributionTrainVO finishDistributionTrainVO = new FinishDistributionTrainVO(); |
|
|
|
|
finishDistributionTrainVO.setTrainNumber(deliveryListEntity.getTrainNumber()); |
|
|
|
|
if(StrUtil.isNotEmpty(deliveryListEntity.getKind())){ |
|
|
|
|
if(StrUtil.equals(deliveryListEntity.getKind(),"1")){ |
|
|
|
|
finishDistributionTrainVO.setDeliveryKind("自主配送"); |
|
|
|
|
} else { |
|
|
|
|
finishDistributionTrainVO.setDeliveryKind("三方配送"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
nodeFanoutMsg.setMain(finishDistributionTrainVO); |
|
|
|
|
return nodeFanoutMsg; |
|
|
|
|
} |
|
|
|
|