提交
This commit is contained in:
@@ -116,5 +116,24 @@ namespace ZR.Service.mes.wms
|
||||
.Where(it => it.PackageCodeClient == patchCode).First();
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// excel 插入或者更新
|
||||
/// </summary>
|
||||
/// <param name="materials"></param>
|
||||
/// <returns></returns>
|
||||
public (int, int) ExcelADD(List<WmMaterial> materials)
|
||||
{
|
||||
if(materials == null || materials.Count == 0)
|
||||
{
|
||||
return (-1,-1);
|
||||
}
|
||||
var x=Context.Storageable(materials)
|
||||
.WhereColumns(it => it.BlankNum).ToStorage();
|
||||
|
||||
int insert= x.AsInsertable.ExecuteCommand(); //执行插入
|
||||
int update= x.AsUpdateable.ExecuteCommand(); //执行更新
|
||||
return (insert, update);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user