From 14f0554c80ea6f82b637504ccbe083bb5484eb3e Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Fri, 6 Sep 2024 10:24:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5erp=E7=89=A9=E6=96=99udi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entity/ErpEntity/ErpBdMaterial.cs | 2 ++ ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/ErpEntity/ErpBdMaterial.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/ErpEntity/ErpBdMaterial.cs index ba6e508f..0b2065d6 100644 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/ErpEntity/ErpBdMaterial.cs +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/ErpEntity/ErpBdMaterial.cs @@ -61,5 +61,7 @@ namespace Tnb.ProductionMgr.Entities.Entity.ErpEntity /// mes物料类型 /// public string DEFNAME { get; set; } + + public string UDI { get; set; } } } \ No newline at end of file diff --git a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs index b077939b..52ed2305 100644 --- a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs @@ -1071,6 +1071,7 @@ namespace Tnb.ProductionMgr category_id = categoryId, unit_id = unitId, state = "1", + di = erpBdMaterial.UDI, create_time = DateTime.Now }; insertMaterial.Add(basMaterial); @@ -1120,6 +1121,7 @@ namespace Tnb.ProductionMgr .SetColumns(x => x.material_standard == erpBdMaterial.MATERIALTYPE) .SetColumns(x => x.unit_id == unitId) .SetColumns(x => x.name == erpBdMaterial.NAME) + .SetColumns(x => x.di == erpBdMaterial.UDI) .Where(x => x.id == materialId) .ExecuteCommandAsync();