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. 批量入库(关键优化点)
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();
}