From ece76e9c22465787eead1ace38951d25e756edaf Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Fri, 28 Apr 2023 10:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B6=E4=BB=B6=E4=BF=AE=E6=94=B9=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Incoming/ItemBasicReader.cs | 21 +------------------ .../Items/ItemBasicEfCoreRepository.cs | 2 +- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/ItemBasicReader.cs b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/ItemBasicReader.cs index de94dfad5..ecab2e62a 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/ItemBasicReader.cs +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/ItemBasicReader.cs @@ -121,25 +121,6 @@ public class ItemBasicReader : IReader catch (Exception) { } - string type = ""; - switch (product.mes_product_code) - { - case "10C01": - type = "成品"; - break; - case "10C02": - type = "成品"; - break; - case "10C03": - type = "物料"; - break; - case "10C04": - type = "半成品"; - break; - default: - type = "无"; - break; - } var itemBasicRequest = new ItemBasicExchangeDto() { @@ -157,7 +138,7 @@ public class ItemBasicReader : IReader IsRecycled = product.mes_product_mfg == "10406" ? true : false, //10406 回收 #endregion - Type = type,//10C01成品、10C02原料、10C03物料、10C04半成品 + Type = product.mes_product_code,//10C01成品、10C02原料、10C03物料、10C04半成品 Configuration = product.mes_product_spec, BasicUom = product.mes_product_unit, AbcClass = "", diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs index ce2fb4ebb..4b4bedc65 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs @@ -27,7 +27,7 @@ public class ItemBasicEfCoreRepository : SfsBaseDataEfCoreRepositoryBase