This commit is contained in:
tanglong 2026-07-15 14:35:01 +08:00
parent e3b7dc5528
commit 05f24cd395

View File

@ -243,11 +243,11 @@ namespace YD_YiLu.Api.Services.Impl
// 👉 4. 批量入库(关键优化点) // 👉 4. 批量入库(关键优化点)
if (newEntities.Any()) if (newEntities.Any())
{ {
var sportsTestValueEntities = await AddSportsTestValueEntity(orgId.Value, newEntities); //var sportsTestValueEntities = await AddSportsTestValueEntity(orgId.Value, newEntities);
_context.YL_Train.AddRange(newEntities); _context.YL_Train.AddRange(newEntities);
if (sportsTestValueEntities.Any()) //if (sportsTestValueEntities.Any())
_context.SportsTestValue.AddRange(sportsTestValueEntities); // _context.SportsTestValue.AddRange(sportsTestValueEntities);
await _context.SaveChangesAsync(); await _context.SaveChangesAsync();
} }