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