From 07cd3e74ab888941e0cbd5926a11663a4dc22826 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Tue, 31 May 2022 16:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/ReadModuleService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/ReadModuleService.cs b/IRaCIS.Core.Application/Service/Reading/ReadModuleService.cs index 04b179c56..534208521 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadModuleService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadModuleService.cs @@ -34,7 +34,7 @@ namespace IRaCIS.Application.Services /// 获取读片模块 /// [HttpPost] - public async Task<(PageOutput,int)> GetReadModule(GetReadModuleDto dto) + public async Task<(PageOutput,object)> GetReadModule(GetReadModuleDto dto) { var subjectquery = _subjectRepository.WhereIf(dto.TrialId!=null, x => x.TrialId == dto.TrialId).Include(x => x.SubjectVisitList).Include(x=>x.Site) .Select(x => new GetReadModuleDtoOut @@ -61,7 +61,11 @@ namespace IRaCIS.Application.Services }); var pageList = await subjectquery.ToPagedListAsync(dto.PageIndex, dto.PageSize, dto.SortField == null ? "SiteCode" : dto.SortField, dto.SortAsc); - return (pageList, pageList.CurrentPageData.ToList().Max(x => x.Data.Count)); + + return (pageList, new + { + MaxLength = pageList.CurrentPageData.ToList().Max(x => x.Data.Count) + }); }