From 4d916016d7d984bf805bd15da400ee7764fc6f83 Mon Sep 17 00:00:00 2001 From: maqiao <625215135@qq.com> Date: Tue, 2 Apr 2024 09:30:49 +0800 Subject: [PATCH] =?UTF-8?q?Task.Factory.StartNew=E6=94=B9=E4=B8=BATask.Run?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DM_Weight/ViewModels/OrderTakeDialogViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DM_Weight/ViewModels/OrderTakeDialogViewModel.cs b/DM_Weight/ViewModels/OrderTakeDialogViewModel.cs index 358ec18..330e155 100644 --- a/DM_Weight/ViewModels/OrderTakeDialogViewModel.cs +++ b/DM_Weight/ViewModels/OrderTakeDialogViewModel.cs @@ -389,7 +389,7 @@ namespace DM_Weight.ViewModels logger.Info("事务已提交"); // 更新屏显库存 //List singleChannels = record.FindAll(it => it.BoardType != 1); - Task.Factory.StartNew(() => + Task.Run(() => { List singleChannels = record.Where(it => it.BoardType == 5) .GroupBy(it => new { it.DrawerNo, it.ColNo })