修改一版
This commit is contained in:
@@ -15,6 +15,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
public string TaskName { get; set; }
|
||||
|
||||
public ReadingTaskState ReadingTaskState { get; set; }
|
||||
|
||||
public decimal VisitTaskNum { get; set; }
|
||||
}
|
||||
|
||||
public class GetHistoryGlobalInfoInDto
|
||||
@@ -292,6 +294,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
public string TaskName { get; set; }
|
||||
|
||||
public string TaskBlindName { get; set; }
|
||||
|
||||
public decimal VisitTaskNum { get; set; }
|
||||
}
|
||||
|
||||
public class GetReadingPastResultListInDto
|
||||
|
||||
@@ -106,7 +106,8 @@ namespace IRaCIS.Application.Services
|
||||
ReadingTaskState = x.ReadingTaskState,
|
||||
TaskName = x.TaskName,
|
||||
VisitTaskId = x.Id,
|
||||
}).ToListAsync();
|
||||
VisitTaskNum=x.VisitTaskNum
|
||||
}).OrderBy(x=>x.VisitTaskNum).ToListAsync();
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -873,7 +874,7 @@ namespace IRaCIS.Application.Services
|
||||
var taskInfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstNotNullAsync();
|
||||
var readingPastResultList = await _visitTaskRepository.Where(x => x.TrialId == inDto.TrialId && x.SubjectId == inDto.SubjectId && x.DoctorUserId == _userInfo.Id
|
||||
&& x.Id != inDto.VisitTaskId && x.ReadingTaskState == ReadingTaskState.HaveSigned&&x.TaskState==TaskState.Effect)
|
||||
.Where(x=>x.IsAnalysisCreate== taskInfo.IsAnalysisCreate).ProjectTo<GetReadingPastResultListOutDto>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
.Where(x=>x.IsAnalysisCreate== taskInfo.IsAnalysisCreate).ProjectTo<GetReadingPastResultListOutDto>(_mapper.ConfigurationProvider).OrderBy(x=>x.VisitTaskNum).ToListAsync();
|
||||
return readingPastResultList;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user