wms接入redis

This commit is contained in:
qianjiawei
2023-12-12 13:56:55 +08:00
parent 8712508b84
commit 581242f547
3 changed files with 49 additions and 7 deletions

View File

@@ -44,11 +44,11 @@ namespace Tnb.WarehouseMgr
//遍历字典,找出需要查询数据库拿的相关字段
foreach (Dictionary<string, object> d in dics)
{
{ /*
if (d.Select(x => x.Value.ToString()).ToList().Find(v => v != "" && v != string.Empty && v != null) == null)
{
continue;
}
}*/
string LCode = d["location_code"]?.ToString() ?? string.Empty;
if (LCode == string.Empty)
{
@@ -134,13 +134,14 @@ namespace Tnb.WarehouseMgr
{
row = await _db.Fastest<BasLocation>().BulkCopyAsync(locs);
}
/*
else if (locs.Count > 400)
{
_db.Utilities.PageEach(locs, 100, async pageList =>
{
row = await _db.Insertable(pageList).ExecuteCommandAsync();
});
}
}*/
else
{
row = await _db.Insertable(locs).ExecuteCommandAsync();