同步erp物料udi
This commit is contained in:
@@ -61,5 +61,7 @@ namespace Tnb.ProductionMgr.Entities.Entity.ErpEntity
|
||||
/// mes物料类型
|
||||
/// </summary>
|
||||
public string DEFNAME { get; set; }
|
||||
|
||||
public string UDI { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user