优化售后仓退货相关逻辑
This commit is contained in:
1 parent
d06ec9badc
commit
05a48bf605
10 files changed
+750
-235
No files matched your search
@@ -269,8 +269,9 @@ namespace _29WxOrderWpf
|
||||
shop.Is29Supplier = shopExist.Is29Supplier;
|
||||
shop.IsSelect = shopExist.IsSelect;
|
||||
shop.IsFilter = shopExist.IsFilter;
|
||||
list.Remove(shopExist);
|
||||
}
|
||||
list.Remove(shopExist);
|
||||
shopExist = list.LastOrDefault(l => l.ShopId == shop.ShopId);
|
||||
}
|
||||
// 更新店铺 // 代发管理中更新
|
||||
//foreach (var order in GlobalConfig.lstFilterOrder.Where(o => o.shop_id.ParseToString() == shop.ErpShopId).ToList())
|
||||
//{
|
||||
@@ -288,7 +289,11 @@ namespace _29WxOrderWpf
|
||||
|
||||
var t = Task.Run(() =>
|
||||
{
|
||||
while (cList.Count > 20) { Thread.Sleep(100); }
|
||||
while (cList.Count > 20)
|
||||
{
|
||||
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCompleted || ta.IsCanceled);
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
cList.Add(1);
|
||||
try
|
||||
{
|
||||
@@ -325,8 +330,8 @@ namespace _29WxOrderWpf
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (cList.Count > 0)
|
||||
cList.RemoveAt(0);
|
||||
//if (cList.Count > 0)
|
||||
// cList.RemoveAt(0);
|
||||
});
|
||||
tList.Add(t);
|
||||
}
|
||||
@@ -346,7 +351,10 @@ namespace _29WxOrderWpf
|
||||
isReadShop = false;
|
||||
hasReadShop = true;
|
||||
|
||||
while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 1) { tList.RemoveAll(ta => ta.IsFaulted || ta.IsCompleted || ta.IsCanceled); Thread.Sleep(100); }
|
||||
while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 1)
|
||||
{
|
||||
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCompleted || ta.IsCanceled); Thread.Sleep(100);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in new issue
Block a user