diff --git a/IRaCIS.Core.Application/Service/Reading/ReadModuleService.cs b/IRaCIS.Core.Application/Service/Reading/ReadModuleService.cs index 04b179c5..53420852 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) + }); }