修改一版

Test.EIImageViewer
he 2022-07-19 17:16:20 +08:00
parent 28f6c8cb78
commit 88bdeff571
2 changed files with 35 additions and 1 deletions

View File

@ -8,6 +8,20 @@ using System.Threading.Tasks;
namespace IRaCIS.Core.Application.Service.Reading.Dto
{
public class GetHistoryGlobalInfoOutDto
{
public Guid VisitTaskId { get; set; }
public string TaskName { get; set; }
public ReadingTaskState ReadingTaskState { get; set; }
}
public class GetHistoryGlobalInfoInDto
{
public Guid VisitTaskId { get; set; }
}
public class SaveGlobalReadingInfoInDto
{
public Guid GlobalTaskId { get; set; }

View File

@ -78,7 +78,27 @@ namespace IRaCIS.Application.Services
this._readingQuestionTrialRepository = readingQuestionTrialRepository;
}
//public async Task<>
/// <summary>
/// 获取全局阅片历史记录
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<List<GetHistoryGlobalInfoOutDto>> GetHistoryGlobalInfo(GetHistoryGlobalInfoInDto inDto)
{
var taskInfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstNotNullAsync();
List<GetHistoryGlobalInfoOutDto> result = await _visitTaskRepository.Where(x => x.SubjectId == taskInfo.SubjectId && x.ArmEnum == taskInfo.ArmEnum && x.ReadingCategory == ReadingCategory.Global && x.VisitTaskNum < taskInfo.VisitTaskNum)
.OrderBy(x => x.VisitTaskNum)
.Select(x => new GetHistoryGlobalInfoOutDto()
{
ReadingTaskState = x.ReadingTaskState,
TaskName = x.TaskName,
VisitTaskId = x.Id,
}).ToListAsync();
return result;
}
/// <summary>
/// 保存全局阅片结果