|
|
|
@ -2797,7 +2797,9 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
String consigneeName = waybillEntity.getConsigneeName(); |
|
|
|
|
String consigneeAddress = waybillEntity.getConsigneeAddress(); |
|
|
|
|
String consigneeMobile = waybillEntity.getConsigneeMobile(); |
|
|
|
|
Long newDepartureWarehouseId = waybillEntity.getDepartureWarehouseId(); |
|
|
|
|
String departureWarehouseName = waybillEntity.getDepartureWarehouseName(); |
|
|
|
|
Long newDestinationWarehouseId = waybillEntity.getDestinationWarehouseId(); |
|
|
|
|
String destinationWarehouseName = waybillEntity.getDestinationWarehouseName(); |
|
|
|
|
Integer totalCount = waybillEntity.getTotalCount(); |
|
|
|
|
|
|
|
|
@ -2834,12 +2836,12 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
Long nowWarehouseId = parcelListEntity.getWarehouseId(); |
|
|
|
|
String orderPackageCode = parcelListEntity.getOrderPackageCode(); |
|
|
|
|
String orderPackageStatus = parcelListEntity.getOrderPackageStatus(); |
|
|
|
|
parcelListEntity.setSendWarehouseId(departureWarehouseId); |
|
|
|
|
parcelListEntity.setSendWarehouseId(newDepartureWarehouseId); |
|
|
|
|
parcelListEntity.setSendWarehouseName(departureWarehouseName); |
|
|
|
|
parcelListEntity.setAcceptWarehouseId(destinationWarehouseId); |
|
|
|
|
parcelListEntity.setAcceptWarehouseId(newDestinationWarehouseId); |
|
|
|
|
parcelListEntity.setAcceptWarehouseName(destinationWarehouseName); |
|
|
|
|
|
|
|
|
|
if (nowWarehouseId.equals(destinationWarehouseId)) { |
|
|
|
|
if (nowWarehouseId.equals(newDestinationWarehouseId)) { |
|
|
|
|
parcelListEntity.setIsTransfer(0); |
|
|
|
|
if ("20".equals(orderPackageStatus)) { |
|
|
|
|
arriveWarehousePackageCode.add(orderPackageCode); |
|
|
|
@ -2913,9 +2915,9 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
stockArticleEntity.setConsigneePerson(consigneeName); |
|
|
|
|
stockArticleEntity.setConsigneeAddress(consigneeAddress); |
|
|
|
|
stockArticleEntity.setConsigneeMobile(consigneeMobile); |
|
|
|
|
stockArticleEntity.setSendWarehouseId(departureWarehouseId); |
|
|
|
|
stockArticleEntity.setSendWarehouseId(newDepartureWarehouseId); |
|
|
|
|
stockArticleEntity.setSendWarehouseName(departureWarehouseName); |
|
|
|
|
stockArticleEntity.setAcceptWarehouseId(destinationWarehouseId); |
|
|
|
|
stockArticleEntity.setAcceptWarehouseId(newDestinationWarehouseId); |
|
|
|
|
stockArticleEntity.setAcceptWarehouseName(destinationWarehouseName); |
|
|
|
|
String orderCode = stockArticleEntity.getOrderCode(); |
|
|
|
|
if (orderCode.equals(waybillNo)) { |
|
|
|
@ -2961,12 +2963,12 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
} |
|
|
|
|
updateNumberIds.add(id); |
|
|
|
|
} |
|
|
|
|
parcelListEntity.setSendWarehouseId(departureWarehouseId); |
|
|
|
|
parcelListEntity.setSendWarehouseId(newDepartureWarehouseId); |
|
|
|
|
parcelListEntity.setSendWarehouseName(departureWarehouseName); |
|
|
|
|
parcelListEntity.setAcceptWarehouseId(destinationWarehouseId); |
|
|
|
|
parcelListEntity.setAcceptWarehouseId(newDestinationWarehouseId); |
|
|
|
|
parcelListEntity.setAcceptWarehouseName(destinationWarehouseName); |
|
|
|
|
|
|
|
|
|
if (nowWarehouseId.equals(destinationWarehouseId)) { |
|
|
|
|
if (nowWarehouseId.equals(newDestinationWarehouseId)) { |
|
|
|
|
parcelListEntity.setIsTransfer(0); |
|
|
|
|
} else { |
|
|
|
|
parcelListEntity.setIsTransfer(1); |
|
|
|
@ -3015,11 +3017,11 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
entity.setIsZero("1"); |
|
|
|
|
entity.setAdvanceId(waybillDetailDTO.getId()); |
|
|
|
|
entity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
|
entity.setSendWarehouseId(departureWarehouseId); |
|
|
|
|
entity.setSendWarehouseId(newDepartureWarehouseId); |
|
|
|
|
entity.setSendWarehouseName(departureWarehouseName); |
|
|
|
|
entity.setAcceptWarehouseId(destinationWarehouseId); |
|
|
|
|
entity.setAcceptWarehouseId(newDestinationWarehouseId); |
|
|
|
|
entity.setAcceptWarehouseName(destinationWarehouseName); |
|
|
|
|
if (departureWarehouseId.equals(destinationWarehouseId)) { |
|
|
|
|
if (warehouseId1.equals(newDestinationWarehouseId)) { |
|
|
|
|
entity.setIsTransfer(0); |
|
|
|
|
} else { |
|
|
|
|
entity.setIsTransfer(1); |
|
|
|
@ -5168,18 +5170,18 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
waybillEntity.setDestinationWarehouseId(newDestinationWarehouseId); |
|
|
|
|
waybillEntity.setDestinationWarehouseName(newDestinationWarehouseName); |
|
|
|
|
//查询所有该运单的包件
|
|
|
|
|
List<DistributionParcelListEntity> parcelListEntityList = distributionParcelListClient.findListByWaybillId(waybillId); |
|
|
|
|
parcelListEntityList.forEach(parcelListEntity -> { |
|
|
|
|
Long warehouseId = parcelListEntity.getWarehouseId(); |
|
|
|
|
parcelListEntity.setAcceptWarehouseId(newDestinationWarehouseId); |
|
|
|
|
parcelListEntity.setAcceptWarehouseName(newDestinationWarehouseName); |
|
|
|
|
if (warehouseId.equals(newDestinationWarehouseId)) { |
|
|
|
|
parcelListEntity.setIsTransfer(0); |
|
|
|
|
} else { |
|
|
|
|
parcelListEntity.setIsTransfer(1); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
distributionParcelListClient.updateList(parcelListEntityList); |
|
|
|
|
// List<DistributionParcelListEntity> parcelListEntityList = distributionParcelListClient.findListByWaybillId(waybillId);
|
|
|
|
|
// parcelListEntityList.forEach(parcelListEntity -> {
|
|
|
|
|
// Long warehouseId = parcelListEntity.getWarehouseId();
|
|
|
|
|
// parcelListEntity.setAcceptWarehouseId(newDestinationWarehouseId);
|
|
|
|
|
// parcelListEntity.setAcceptWarehouseName(newDestinationWarehouseName);
|
|
|
|
|
// if (warehouseId.equals(newDestinationWarehouseId)) {
|
|
|
|
|
// parcelListEntity.setIsTransfer(0);
|
|
|
|
|
// } else {
|
|
|
|
|
// parcelListEntity.setIsTransfer(1);
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// distributionParcelListClient.updateList(parcelListEntityList);
|
|
|
|
|
} |
|
|
|
|
Long newShipperId = openOrderDTO.getShipperId(); |
|
|
|
|
String newShipper = openOrderDTO.getShipper(); |
|
|
|
|