修改一版

Uat_Study
he 2022-06-07 09:11:53 +08:00
parent 34578d7ff4
commit decf25562a
1 changed files with 6 additions and 1 deletions

View File

@ -93,9 +93,14 @@ namespace IRaCIS.Application.Services
TotalCount =await subjectQuery.Select(x => x.SubjectId).Distinct().CountAsync(),
};
var maxcount = 0;
pageOutput.CurrentPageData.ForEach(x => {
maxcount = maxcount < x.Data.Count ? x.Data.Count : maxcount;
});
return (pageOutput, new
{
MaxLength = pageOutput.CurrentPageData.ToList().Max(x => x.Data.Count)
MaxLength = maxcount
});
#region 用导航属性写的 有问题