修改一版

This commit is contained in:
he
2022-06-24 16:56:23 +08:00
parent 3eecc93023
commit b6994a29fa
3 changed files with 6 additions and 2 deletions
@@ -155,6 +155,9 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
[NotDefault]
public Guid SubjectId { get; set; }
[NotDefault]
public Guid VisitTaskId { get; set; }
}
public class SaveJudgeVisitTaskResult
@@ -402,8 +402,8 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task<List<GetReadingPastResultListOutDto>> GetReadingPastResultList(GetReadingPastResultListInDto inDto)
{
var readingPastResultList =await _visitTaskRepository.Where(x => x.TrialId == inDto.TrialId&&x.SubjectId==inDto.SubjectId && x.DoctorUserId == _userInfo.Id)
.ProjectTo<GetReadingPastResultListOutDto>(_mapper.ConfigurationProvider).ToListAsync();
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).ProjectTo<GetReadingPastResultListOutDto>(_mapper.ConfigurationProvider).ToListAsync();
return readingPastResultList;
}