Task.Factory.StartNew改为Task.Run

This commit is contained in:
maqiao 2024-04-02 09:30:49 +08:00
parent 840879b994
commit 4d916016d7
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ namespace DM_Weight.ViewModels
logger.Info("事务已提交");
// 更新屏显库存
//List<ChannelStock> singleChannels = record.FindAll(it => it.BoardType != 1);
Task.Factory.StartNew(() =>
Task.Run(() =>
{
List<ChannelStock> singleChannels = record.Where(it => it.BoardType == 5)
.GroupBy(it => new { it.DrawerNo, it.ColNo })