同步erp物料udi

This commit is contained in:
2024-09-06 10:24:43 +08:00
parent d085ed872d
commit 14f0554c80
2 changed files with 4 additions and 0 deletions

View File

@@ -61,5 +61,7 @@ namespace Tnb.ProductionMgr.Entities.Entity.ErpEntity
/// mes物料类型 /// mes物料类型
/// </summary> /// </summary>
public string DEFNAME { get; set; } public string DEFNAME { get; set; }
public string UDI { get; set; }
} }
} }

View File

@@ -1071,6 +1071,7 @@ namespace Tnb.ProductionMgr
category_id = categoryId, category_id = categoryId,
unit_id = unitId, unit_id = unitId,
state = "1", state = "1",
di = erpBdMaterial.UDI,
create_time = DateTime.Now create_time = DateTime.Now
}; };
insertMaterial.Add(basMaterial); insertMaterial.Add(basMaterial);
@@ -1120,6 +1121,7 @@ namespace Tnb.ProductionMgr
.SetColumns(x => x.material_standard == erpBdMaterial.MATERIALTYPE) .SetColumns(x => x.material_standard == erpBdMaterial.MATERIALTYPE)
.SetColumns(x => x.unit_id == unitId) .SetColumns(x => x.unit_id == unitId)
.SetColumns(x => x.name == erpBdMaterial.NAME) .SetColumns(x => x.name == erpBdMaterial.NAME)
.SetColumns(x => x.di == erpBdMaterial.UDI)
.Where(x => x.id == materialId) .Where(x => x.id == materialId)
.ExecuteCommandAsync(); .ExecuteCommandAsync();