|
|
@ -21,13 +21,13 @@ public class ArriveConverter : IOutgoingConverter |
|
|
|
private readonly IObjectMapper _objectMapper; |
|
|
|
private readonly IInventoryLabelAppService _inventoryLabelAppService; |
|
|
|
|
|
|
|
|
|
|
|
public ArriveConverter( |
|
|
|
IOutgoingFromWmsManager outgoingFromWmsManager |
|
|
|
, IOutgoingToExternalManager outgoingToExternalManager |
|
|
|
, ISupplierAsnAppService supplierAsnAppService |
|
|
|
, IObjectMapper objectMapper |
|
|
|
, IInventoryLabelAppService inventoryLabelAppService |
|
|
|
|
|
|
|
) |
|
|
|
{ |
|
|
|
_inventoryLabelAppService = inventoryLabelAppService; |
|
|
@ -71,6 +71,20 @@ public class ArriveConverter : IOutgoingConverter |
|
|
|
{ |
|
|
|
arrive.ShipBillNo = label.AsnNumber; |
|
|
|
} |
|
|
|
try |
|
|
|
{ |
|
|
|
//通过发货单号获取发货时间
|
|
|
|
var supplierAsnDTO=await _supplierAsnAppService.GetByNumberAsync(label.AsnNumber).ConfigureAwait(false); |
|
|
|
if (supplierAsnDTO != null) |
|
|
|
{ |
|
|
|
arrive.ShipDate = supplierAsnDTO.ShipDate; |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
outgoingToExternal.SetError(EnumExchangeDataErrorCode.Exception, ex.InnerException == null ? ex.Message : ex.InnerException.Message, ex.ToString()); |
|
|
|
} |
|
|
|
|
|
|
|
outgoingToExternal.DestinationDataContent = JsonSerializer.Serialize(arrive); |
|
|
|
|
|
|
|
outgoingToExternalList.Add(outgoingToExternal); |
|
|
|