This commit is contained in:
2021-12-30 01:01:59 +00:00
parent 1645b7d667
commit f8d47551ee
18 changed files with 320 additions and 128 deletions

View File

@@ -47,13 +47,7 @@ namespace AyaNova.Biz
var batchResults = await ct.ViewPartInventoryRequestList.AsNoTracking().Where(z => batch.Contains(z.RequestId)).ToArrayAsync();
//order the results back into original
var orderedList = from id in batch join z in batchResults on id equals z.RequestId select z;
//cache frequent viz data
var AyaTypesEnumList = await AyaNova.Api.Controllers.EnumListController.GetEnumList(
StringUtil.TrimTypeName(typeof(AyaType).ToString()),
UserTranslationId,
CurrentUserRoles);
batchResults=null;
foreach (ViewPartInventoryRequestList w in orderedList)
{
if (!ReportRenderManager.KeepGoing(jobId)) return null;
@@ -61,7 +55,7 @@ namespace AyaNova.Biz
var jo = JObject.FromObject(w);
ReportData.Add(jo);
}
orderedList=null;
}
return ReportData;
}