|
|
@ -653,7 +653,9 @@ public class OpenOrderServiceImpl implements IOpenOrderService { |
|
|
|
//绑定订单和运单的关系
|
|
|
|
//绑定订单和运单的关系
|
|
|
|
List<TrunklineAdvanceEntity> advanceEntityList = advanceService.findListByIds(advanceIds); |
|
|
|
List<TrunklineAdvanceEntity> advanceEntityList = advanceService.findListByIds(advanceIds); |
|
|
|
List<TrunklineWaybillOrderEntity> waybillOrderEntities = new ArrayList<>(); |
|
|
|
List<TrunklineWaybillOrderEntity> waybillOrderEntities = new ArrayList<>(); |
|
|
|
|
|
|
|
Set<String> orderCodeSet = new HashSet<>(); |
|
|
|
for (TrunklineAdvanceEntity advanceEntity : advanceEntityList) { |
|
|
|
for (TrunklineAdvanceEntity advanceEntity : advanceEntityList) { |
|
|
|
|
|
|
|
orderCodeSet.add(advanceEntity.getOrderCode()); |
|
|
|
Long advanceId = advanceEntity.getId(); |
|
|
|
Long advanceId = advanceEntity.getId(); |
|
|
|
String waybillStatus = advanceEntity.getWaybillStatus(); |
|
|
|
String waybillStatus = advanceEntity.getWaybillStatus(); |
|
|
|
if ("1".equals(waybillStatus)) { |
|
|
|
if ("1".equals(waybillStatus)) { |
|
|
@ -696,7 +698,8 @@ public class OpenOrderServiceImpl implements IOpenOrderService { |
|
|
|
Long consigneeId1 = waybillEntity.getConsigneeId(); |
|
|
|
Long consigneeId1 = waybillEntity.getConsigneeId(); |
|
|
|
BasicdataClientEntity basicdataClientEntity = basicdataClientClient.findEntityById(consigneeId1); |
|
|
|
BasicdataClientEntity basicdataClientEntity = basicdataClientClient.findEntityById(consigneeId1); |
|
|
|
|
|
|
|
|
|
|
|
List<DistributionParcelListEntity> parcelListEntities = distributionParcelListClient.findIdAndWarehouseIdListByAdvanceIds(advanceIds); |
|
|
|
// List<DistributionParcelListEntity> parcelListEntities = distributionParcelListClient.findIdAndWarehouseIdListByAdvanceIds(advanceIds);
|
|
|
|
|
|
|
|
List<DistributionParcelListEntity> parcelListEntities = distributionParcelListClient.findIdAndWarehouseIdListByOrderCodes(orderCodeSet); |
|
|
|
Set<Long> stockArticleIds = new TreeSet<>(); |
|
|
|
Set<Long> stockArticleIds = new TreeSet<>(); |
|
|
|
String finalWaybillNo = waybillNo; |
|
|
|
String finalWaybillNo = waybillNo; |
|
|
|
parcelListEntities.forEach(parcelListEntity -> { |
|
|
|
parcelListEntities.forEach(parcelListEntity -> { |
|
|
@ -739,8 +742,6 @@ public class OpenOrderServiceImpl implements IOpenOrderService { |
|
|
|
if(CollUtil.isNotEmpty(updateList)){ |
|
|
|
if(CollUtil.isNotEmpty(updateList)){ |
|
|
|
distributionStockArticleClient.updateByBatchId(updateList); |
|
|
|
distributionStockArticleClient.updateByBatchId(updateList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
trunklineWaybillPackageService.updateWaybillStatus(waybillEntity); |
|
|
|
trunklineWaybillPackageService.updateWaybillStatus(waybillEntity); |
|
|
|
|
|
|
|
|
|
|
|