This commit is contained in:
he
2022-07-13 16:34:21 +08:00
parent 353fc63f5e
commit b6ded90a84
6 changed files with 55 additions and 4 deletions
@@ -388,6 +388,12 @@ namespace IRaCIS.Core.Application.Contracts
/// </summary>
public bool IsEnable { get; set; }
/// <summary>
/// 是否公共分页
/// </summary>
public bool IsPublicPage { get; set; }
/// <summary>
/// 创建时间
/// </summary>
@@ -401,6 +407,9 @@ namespace IRaCIS.Core.Application.Contracts
public class TrialReadQuestion
{
public Guid Id { get; set; }
/// <summary>
/// 排序
/// </summary>
@@ -97,6 +97,17 @@ namespace IRaCIS.Core.Application
}).ToListAsync();
}
/// <summary>
/// 获取项目标准分页信息
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<List<ReadingCriterionPageDto>> GetReadingCriterionPageList(GetTrialReadingInfoInDto inDto)
{
return await _readingCriterionPageRepository.Where(x => x.TrialId == inDto.TrialId).ProjectTo<ReadingCriterionPageDto>(_mapper.ConfigurationProvider).ToListAsync();
}
/// <summary>
/// 获取项目阅片标准信息
/// </summary>
@@ -117,8 +128,8 @@ namespace IRaCIS.Core.Application
};
result.TrialQuestionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.TrialId == inDto.TrialId)
.ProjectTo<TrialReadQuestion>(_mapper.ConfigurationProvider).ToListAsync();
result.TrialQuestionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.TrialId == inDto.TrialId&&x.ReadingQuestionCriterionTrialId == result.TrialCriterionId)
.ProjectTo<TrialReadQuestion>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();