优化买手单读取
This commit is contained in:
1 parent
7380763c1d
commit
fd07c9ba40
8 files changed
+4383
-129
No files matched your search
@@ -58,6 +58,7 @@ namespace _29WxOrderWpf
|
||||
public partial class MainWindow : BaseWindow, INotifyPropertyChanged
|
||||
{
|
||||
public static MainWindow Instance { get; private set; }
|
||||
public static readonly object _orderLock = new object();
|
||||
|
||||
private readonly TicketRealtimeMonitor _ticketMonitor = TicketRealtimeMonitor.Current;
|
||||
private readonly WorkOrderUnreadService _workOrderUnreadService = new WorkOrderUnreadService();
|
||||
@@ -335,7 +336,12 @@ namespace _29WxOrderWpf
|
||||
break;
|
||||
}
|
||||
|
||||
foreach (var order in GlobalConfig.lstFilterOrder.Where(o => o.shop_id.ParseToString() == shop.ErpShopId).ToList())
|
||||
List<oms_wei_order_info> orders;
|
||||
lock (_orderLock)
|
||||
{
|
||||
orders = GlobalConfig.lstFilterOrder.Where(o => o.shop_id.ParseToString() == shop.ErpShopId).ToList();
|
||||
}
|
||||
foreach (var order in orders)
|
||||
{
|
||||
// 更新代发管理情况
|
||||
foreach (var orderItem in order.orderItems)
|
||||
|
||||
Reference in new issue
Block a user