Uat_Study
parent
ba363d42bd
commit
17bcb10b66
|
@ -300,6 +300,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public decimal VisitTaskNum { get; set; }
|
||||
}
|
||||
|
||||
public class GetJudgeReadingPastResultListInDto
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid VisitTaskId { get; set; }
|
||||
}
|
||||
|
||||
public class GetReadingPastResultListInDto
|
||||
{
|
||||
[NotDefault]
|
||||
|
|
|
@ -915,6 +915,25 @@ namespace IRaCIS.Application.Services
|
|||
.Where(x=>x.IsAnalysisCreate== taskInfo.IsAnalysisCreate).ProjectTo<GetReadingPastResultListOutDto>(_mapper.ConfigurationProvider).OrderBy(x=>x.VisitTaskNum).ToListAsync();
|
||||
return readingPastResultList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取裁判既往结果
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 这里是裁判的既往结果
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<GetReadingPastResultListOutDto>> GetJudgeReadingPastResultList(GetJudgeReadingPastResultListInDto inDto)
|
||||
{
|
||||
var taskInfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstNotNullAsync();
|
||||
var readingPastResultList = await _visitTaskRepository.Where(x => x.TrialId == taskInfo.TrialId && x.SubjectId == taskInfo.SubjectId && x.ArmEnum == taskInfo.ArmEnum
|
||||
&& x.Id != inDto.VisitTaskId && x.ReadingTaskState == ReadingTaskState.HaveSigned && x.TaskState == TaskState.Effect&&
|
||||
x.ReadingCategory==ReadingCategory.Judge
|
||||
)
|
||||
.Where(x => x.IsAnalysisCreate == taskInfo.IsAnalysisCreate).ProjectTo<GetReadingPastResultListOutDto>(_mapper.ConfigurationProvider).OrderBy(x => x.VisitTaskNum).ToListAsync();
|
||||
return readingPastResultList;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 找子问题
|
||||
|
|
Loading…
Reference in New Issue