Browse Source

零件修改更新

集成Redis
lvzb 2 years ago
parent
commit
ece76e9c22
  1. 21
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/ItemBasicReader.cs
  2. 2
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs

21
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 = "",

2
be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs

@ -27,7 +27,7 @@ public class ItemBasicEfCoreRepository : SfsBaseDataEfCoreRepositoryBase<Basedat
exist.Desc1 = entity.Desc1;
exist.Desc2 = entity.Desc2;
exist.Configuration = entity.Configuration;
entity.Type = entity.Type;
exist.Type = entity.Type;
exist.BasicUom = entity.BasicUom;
exist.CanBuy = entity.CanBuy;
exist.CanMake = entity.CanMake;

Loading…
Cancel
Save