修改一版

Uat_Study
he 2022-06-17 16:10:29 +08:00
parent 58fe222837
commit ee76c858eb
2 changed files with 10 additions and 12 deletions

View File

@ -1193,8 +1193,6 @@ namespace IRaCIS.Core.Application.Image.QA
dbSubjectVisit.AuditState = AuditStateEnum.ToAudit; dbSubjectVisit.AuditState = AuditStateEnum.ToAudit;
} }
} }

View File

@ -99,7 +99,7 @@ namespace IRaCIS.Application.Services
/// <param name="inDto"></param> /// <param name="inDto"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
public async Task<(List<GetReadingImgOutDto>,object)> GetReadingImageFile(GetReadingImgInDto inDto) public async Task<(List<NoneDicomStudyView>,object)> GetReadingImageFile(GetReadingImgInDto inDto)
{ {
var task=await GetNextTaskId(inDto.SubjectId, inDto.TrialId); var task=await GetNextTaskId(inDto.SubjectId, inDto.TrialId);
List<Guid> visitIds = new List<Guid>(); List<Guid> visitIds = new List<Guid>();
@ -114,13 +114,13 @@ namespace IRaCIS.Application.Services
} }
List<GetReadingImgOutDto> imgList = await _noneDicomStudyRepository.Where(x => visitIds.Contains(x.SubjectVisitId))
.SelectMany(x => x.NoneDicomFileList).Select(x => new GetReadingImgOutDto() List<NoneDicomStudyView> result=await _noneDicomStudyRepository.Where(t => visitIds.Contains(t.SubjectVisitId))
{
FileName = x.FileName, .ProjectTo<NoneDicomStudyView>(_mapper.ConfigurationProvider, new { token = _userInfo.UserToken }).ToListAsync();
Path = x.Path
}).ToListAsync();
return (imgList,new { return (result, new {
VisitTaskId= task.VisistTaskId VisitTaskId= task.VisistTaskId
}); });
} }