From cda4f79bc123b76fc615fc5c72fa8738f81f091b Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Mon, 7 Aug 2023 13:26:06 +0800 Subject: [PATCH] =?UTF-8?q?EOS=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Products/ProductManager.cs | 2 +- .../Incoming/ShipConverter.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Eos/Products/ProductManager.cs b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Eos/Products/ProductManager.cs index 48f434901..7c6975547 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Eos/Products/ProductManager.cs +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Eos/Products/ProductManager.cs @@ -24,7 +24,7 @@ public class ProductManager : DomainService, IProductManager } else { - plans = await _repository.GetListAsync(r => r.EosDate != null).ConfigureAwait(false); + plans = await _repository.GetListAsync(r => r.EosDate != null&& r.EosDate > DateTime.Now.AddDays(-1)).ConfigureAwait(false); } return plans; diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/Incoming/ShipConverter.cs b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/Incoming/ShipConverter.cs index 641033e6e..28f70da1d 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/Incoming/ShipConverter.cs +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/Incoming/ShipConverter.cs @@ -105,6 +105,7 @@ public class ShipConverter : IIncomingConverter purchaseLabel.ItemDesc1 = item.Desc1; purchaseLabel.Uom = item.BasicUom; purchaseLabel.ItemDesc2 = item.Desc2; + purchaseLabel.ExpireDate = DateTime.Now.AddDays(item.GetValidateDays()); } else { @@ -112,6 +113,7 @@ public class ShipConverter : IIncomingConverter purchaseLabel.ItemDesc1 = ""; purchaseLabel.Uom = ""; purchaseLabel.ItemDesc2 = ""; + purchaseLabel.ExpireDate = DateTime.Now; } purchaseLabel.LabelType = EnumLabelType.PurchaseLabel; var supplierDto = await _supplierAppService.GetByCodeAsync(exchangeAsn.SupplierCode).ConfigureAwait(false); @@ -135,7 +137,7 @@ public class ShipConverter : IIncomingConverter purchaseLabel.SupplierItemName = exchangeAsn.Detail.SupplierItemName; - purchaseLabel.ExpireDate = DateTime.Now.AddDays(item.GetValidateDays()); + purchaseLabel.ExtraProperties = new ExtraPropertyDictionary(); purchaseLabel.LabelStatus = LabelStatus.Enable; purchaseLabel.Specifications = item.Color;