修改一版
parent
bded14713e
commit
07cd3e74ab
|
@ -34,7 +34,7 @@ namespace IRaCIS.Application.Services
|
||||||
/// 获取读片模块
|
/// 获取读片模块
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<(PageOutput<GetReadModuleDtoOut>,int)> GetReadModule(GetReadModuleDto dto)
|
public async Task<(PageOutput<GetReadModuleDtoOut>,object)> GetReadModule(GetReadModuleDto dto)
|
||||||
{
|
{
|
||||||
var subjectquery = _subjectRepository.WhereIf(dto.TrialId!=null, x => x.TrialId == dto.TrialId).Include(x => x.SubjectVisitList).Include(x=>x.Site)
|
var subjectquery = _subjectRepository.WhereIf(dto.TrialId!=null, x => x.TrialId == dto.TrialId).Include(x => x.SubjectVisitList).Include(x=>x.Site)
|
||||||
.Select(x => new GetReadModuleDtoOut
|
.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,
|
var pageList = await subjectquery.ToPagedListAsync(dto.PageIndex, dto.PageSize, dto.SortField == null ? "SiteCode" : dto.SortField,
|
||||||
dto.SortAsc);
|
dto.SortAsc);
|
||||||
return (pageList, pageList.CurrentPageData.ToList().Max(x => x.Data.Count));
|
|
||||||
|
return (pageList, new
|
||||||
|
{
|
||||||
|
MaxLength = pageList.CurrentPageData.ToList().Max(x => x.Data.Count)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue