修改分页
parent
63cb1bce95
commit
8575df5eb9
|
@ -221,7 +221,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
}
|
||||
|
||||
///<summary>OrganInfoQuery 列表查询参数模型</summary>
|
||||
public class OrganInfoQuery
|
||||
public class OrganInfoQuery:PageInput
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
@ -238,6 +238,10 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
///<summary> OrganInfoAddOrEdit 列表查询参数模型</summary>
|
||||
public class OrganInfoAddOrEdit
|
||||
{
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
}
|
||||
|
||||
public class GetTumorAssessmentListInDto
|
||||
public class GetTumorAssessmentListInDto:PageInput
|
||||
{
|
||||
public Guid CriterionId { get; set; }
|
||||
|
||||
|
|
|
@ -141,6 +141,32 @@ namespace IRaCIS.Core.Application.Service
|
|||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统器官分页信息
|
||||
/// </summary>
|
||||
/// <param name="inQuery"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<PageOutput<OrganInfoView>> GetOrganPageList(OrganInfoQuery inQuery)
|
||||
{
|
||||
|
||||
|
||||
List<OrganType> organs = new List<OrganType>();
|
||||
|
||||
if (inQuery.LesionType != null)
|
||||
{
|
||||
organs = await _criterionNidusRepository.Where(x => x.CriterionId == inQuery.SystemCriterionId && x.LesionType == inQuery.LesionType)
|
||||
.Select(x => x.OrganType).ToListAsync();
|
||||
}
|
||||
|
||||
var organInfoQueryable = _organInfoRepository
|
||||
.Where(x => x.SystemCriterionId == inQuery.SystemCriterionId)
|
||||
.WhereIf(inQuery.LesionType != null, x => organs.Contains(x.OrganType))
|
||||
.WhereIf(inQuery.OrganType != null, x => x.OrganType == inQuery.OrganType)
|
||||
.ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider);
|
||||
return await organInfoQueryable.ToPagedListAsync(inQuery.PageIndex, inQuery.PageSize, string.IsNullOrWhiteSpace(inQuery.SortField) ? nameof(OrganInfoView.OrganType) : inQuery.SortField, inQuery.Asc);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增或修改系统器官数据
|
||||
/// </summary>
|
||||
|
|
|
@ -98,6 +98,24 @@ namespace IRaCIS.Application.Services
|
|||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取疗效对照
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<PageOutput<TumorAssessmentView>> GetTumorAssessmentPageList(GetTumorAssessmentListInDto inQuery)
|
||||
{
|
||||
var query = _tumorAssessmentRepository
|
||||
.Where(x => x.CriterionId == inQuery.CriterionId)
|
||||
.WhereIf(inQuery.OverallEfficacy != null, x => x.OverallEfficacy == inQuery.OverallEfficacy)
|
||||
.WhereIf(inQuery.TargetLesion != null, x => x.TargetLesion == inQuery.TargetLesion)
|
||||
.WhereIf(inQuery.NonTargetLesions != null, x => x.NonTargetLesions == inQuery.NonTargetLesions)
|
||||
.WhereIf(inQuery.NewLesion != null, x => x.NewLesion == inQuery.NewLesion)
|
||||
.ProjectTo<TumorAssessmentView>(_mapper.ConfigurationProvider);
|
||||
|
||||
return await query.ToPagedListAsync(inQuery.PageIndex, inQuery.PageSize, string.IsNullOrWhiteSpace(inQuery.SortField) ? nameof(TumorAssessmentView.Id) : inQuery.SortField, inQuery.Asc);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 新增修改疗效对照
|
||||
|
|
Loading…
Reference in New Issue