修改一版
parent
28f6c8cb78
commit
88bdeff571
|
@ -8,6 +8,20 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.Service.Reading.Dto
|
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 class SaveGlobalReadingInfoInDto
|
||||||
{
|
{
|
||||||
public Guid GlobalTaskId { get; set; }
|
public Guid GlobalTaskId { get; set; }
|
||||||
|
|
|
@ -78,7 +78,27 @@ namespace IRaCIS.Application.Services
|
||||||
this._readingQuestionTrialRepository = readingQuestionTrialRepository;
|
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>
|
/// <summary>
|
||||||
/// 保存全局阅片结果
|
/// 保存全局阅片结果
|
||||||
|
|
Loading…
Reference in New Issue