From 05f24cd395b38e21c43920106fdc7254954e3225 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Wed, 15 Jul 2026 14:35:01 +0800 Subject: [PATCH] tijiao --- YD_YiLu/Services/Impl/DeviceSyncService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YD_YiLu/Services/Impl/DeviceSyncService.cs b/YD_YiLu/Services/Impl/DeviceSyncService.cs index 3a70e3f..0dca9c7 100644 --- a/YD_YiLu/Services/Impl/DeviceSyncService.cs +++ b/YD_YiLu/Services/Impl/DeviceSyncService.cs @@ -243,11 +243,11 @@ namespace YD_YiLu.Api.Services.Impl // 👉 4. 批量入库(关键优化点) if (newEntities.Any()) { - var sportsTestValueEntities = await AddSportsTestValueEntity(orgId.Value, newEntities); + //var sportsTestValueEntities = await AddSportsTestValueEntity(orgId.Value, newEntities); _context.YL_Train.AddRange(newEntities); - if (sportsTestValueEntities.Any()) - _context.SportsTestValue.AddRange(sportsTestValueEntities); + //if (sportsTestValueEntities.Any()) + // _context.SportsTestValue.AddRange(sportsTestValueEntities); await _context.SaveChangesAsync(); }