tijiao
This commit is contained in:
parent
e3b7dc5528
commit
05f24cd395
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user