|
|
|
@ -3548,6 +3548,8 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
log.info("###################verifyUpdateData: 验证改单数据"); |
|
|
|
|
StringBuilder stringBuilder = new StringBuilder(); |
|
|
|
|
|
|
|
|
|
Long waybillId = waybillEntity.getId(); |
|
|
|
|
|
|
|
|
|
String newDeparture = openOrderDTO.getDeparture(); |
|
|
|
|
String departure = waybillEntity.getDeparture(); |
|
|
|
|
if(!ObjectUtil.equals(newDeparture,departure)){ |
|
|
|
@ -3600,6 +3602,19 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
stringBuilder.append("目的仓:").append(departureWarehouseName).append("-->").append(newDestinationWarehouseName).append(";"); |
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
Long newShipperId = openOrderDTO.getShipperId(); |
|
|
|
|
String newShipper = openOrderDTO.getShipper(); |
|
|
|
|