Browse Source

EOS接口修改

集成Redis
lvzb 2 years ago
parent
commit
a503031eaf
  1. 13
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/Outgoing/ArriveConverter.cs
  2. 15
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Application.Contracts/Win_in.Sfs.Wms.DataExchange.Application.Contracts.xml

13
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/Outgoing/ArriveConverter.cs

@ -1,8 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
using Volo.Abp.ObjectMapping;
using Win_in.Sfs.Label.Application.Contracts;
using Win_in.Sfs.Wms.DataExchange.Domain;
using Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.EOS;
using Win_in.Sfs.Wms.DataExchange.Domain.Shared;
@ -17,6 +19,7 @@ public class ArriveConverter : IOutgoingConverter
private readonly IOutgoingToExternalManager _outgoingToExternalManager;
private readonly ISupplierAsnAppService _supplierAsnAppService;
private readonly IObjectMapper _objectMapper;
private readonly IInventoryLabelAppService _inventoryLabelAppService;
public ArriveConverter(
@ -24,8 +27,10 @@ public class ArriveConverter : IOutgoingConverter
, IOutgoingToExternalManager outgoingToExternalManager
, ISupplierAsnAppService supplierAsnAppService
, IObjectMapper objectMapper
, IInventoryLabelAppService inventoryLabelAppService
)
{
_inventoryLabelAppService = inventoryLabelAppService;
_outgoingFromWmsManager = outgoingFromWmsManager;
_outgoingToExternalManager = outgoingToExternalManager;
_supplierAsnAppService = supplierAsnAppService;
@ -60,6 +65,12 @@ public class ArriveConverter : IOutgoingConverter
var exchangeReceipt = await BuildPutawayExchangeDtoAsync(wmsReceipt, detail).ConfigureAwait(false);
outgoingToExternal.SourceDataContent = JsonSerializer.Serialize(exchangeReceipt);
var arrive = BuildArrive(exchangeReceipt);
var label = await _inventoryLabelAppService.GetByCodeAsync(arrive.DetailMatNo).ConfigureAwait(false);
if (label != null)
{
arrive.ShipBillNo = label.AsnNumber;
}
outgoingToExternal.DestinationDataContent = JsonSerializer.Serialize(arrive);
outgoingToExternalList.Add(outgoingToExternal);
@ -87,7 +98,7 @@ public class ArriveConverter : IOutgoingConverter
DocNo = exchangeReceipt.Number,
DetailMatNo = detail.ToPackingCode,
ERP = detail.ItemCode,
Qty = detail.ShippedQty,
Qty = detail.Qty,
HgQty = detail.Qty,
ProductDate = detail.ProduceDate,
ProductBatch = detail.ToLot,

15
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Application.Contracts/Win_in.Sfs.Wms.DataExchange.Application.Contracts.xml

@ -876,6 +876,11 @@
物品代码
</summary>
</member>
<member name="P:Win_in.Sfs.Wms.DataExchange.WMS.ProductRecycleNote.ProductRecycleNoteDetailExchangeDto.LocationErpCode">
<summary>
库位组
</summary>
</member>
<member name="P:Win_in.Sfs.Wms.DataExchange.WMS.ProductRecycleNote.ProductRecycleNoteDetailExchangeDto.Lot">
<summary>
排序批次
@ -1601,6 +1606,11 @@
来源ERP库位
</summary>
</member>
<member name="P:Win_in.Sfs.Wms.DataExchange.WMS.UnplannedIssueNote.UnplannedIssueNoteDetailExchangeDto.LocationErpCode">
<summary>
库位组
</summary>
</member>
<member name="P:Win_in.Sfs.Wms.DataExchange.WMS.UnplannedIssueNote.UnplannedIssueNoteDetailExchangeDto.Qty">
<summary>
数量
@ -1636,6 +1646,11 @@
来源ERP库位
</summary>
</member>
<member name="P:Win_in.Sfs.Wms.DataExchange.WMS.UnplannedReceiptNote.UnplannedReceiptNoteDetailExchangeDto.LocationErpCode">
<summary>
库位组
</summary>
</member>
<member name="P:Win_in.Sfs.Wms.DataExchange.WMS.UnplannedReceiptNote.UnplannedReceiptNoteDetailExchangeDto.Qty">
<summary>
数量

Loading…
Cancel
Save