添加字段
parent
8d8b41253e
commit
304ad35f29
|
@ -1163,6 +1163,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public string TaskBlindName { get; set; }
|
public string TaskBlindName { get; set; }
|
||||||
|
|
||||||
|
public string SubjectCode { get; set; }
|
||||||
|
|
||||||
public ReadingTaskState ReadingTaskState { get; set; }
|
public ReadingTaskState ReadingTaskState { get; set; }
|
||||||
|
|
||||||
public decimal VisitTaskNum { get; set; }
|
public decimal VisitTaskNum { get; set; }
|
||||||
|
|
|
@ -519,13 +519,14 @@ namespace IRaCIS.Application.Services
|
||||||
taskQuery = _visitTaskRepository.Where(x => taskInfo.RelatedVisitTaskIdList.Contains(x.Id) || x.Id == taskInfo.Id);
|
taskQuery = _visitTaskRepository.Where(x => taskInfo.RelatedVisitTaskIdList.Contains(x.Id) || x.Id == taskInfo.Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
var result = await taskQuery.OrderBy(x => x.VisitTaskNum).ThenBy(x => x.TaskState)
|
var result = await taskQuery.Include(x=>x.Subject).OrderBy(x => x.VisitTaskNum).ThenBy(x => x.TaskState)
|
||||||
.Select(x => new GetRelatedVisitTaskOutDto()
|
.Select(x => new GetRelatedVisitTaskOutDto()
|
||||||
{
|
{
|
||||||
TaskBlindName = x.TaskBlindName,
|
TaskBlindName = x.TaskBlindName,
|
||||||
TaskName = x.TaskName,
|
TaskName = x.TaskName,
|
||||||
ReadingTaskState = x.ReadingTaskState,
|
ReadingTaskState = x.ReadingTaskState,
|
||||||
VisitId = x.SourceSubjectVisitId,
|
VisitId = x.SourceSubjectVisitId,
|
||||||
|
SubjectCode=x.Subject.Code,
|
||||||
VisitTaskId = x.Id,
|
VisitTaskId = x.Id,
|
||||||
VisitTaskNum = x.VisitTaskNum,
|
VisitTaskNum = x.VisitTaskNum,
|
||||||
IsBaseLineTask = x.SourceSubjectVisitId == baselineVisitId,
|
IsBaseLineTask = x.SourceSubjectVisitId == baselineVisitId,
|
||||||
|
|
Loading…
Reference in New Issue