wms接入redis
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user