修改一版
parent
58fe222837
commit
ee76c858eb
|
@ -1193,8 +1193,6 @@ namespace IRaCIS.Core.Application.Image.QA
|
|||
dbSubjectVisit.AuditState = AuditStateEnum.ToAudit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ namespace IRaCIS.Application.Services
|
|||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[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);
|
||||
List<Guid> visitIds = new List<Guid>();
|
||||
|
@ -112,15 +112,15 @@ namespace IRaCIS.Application.Services
|
|||
// 阅片期取前面所有的图像
|
||||
visitIds.AddRange(await _subjectVisitRepository.Where(x => x.VisitNum <= task.VisitNum && x.SubjectId == task.SubjectId).Select(x => x.Id).ToListAsync());
|
||||
}
|
||||
|
||||
|
||||
List<GetReadingImgOutDto> imgList = await _noneDicomStudyRepository.Where(x => visitIds.Contains(x.SubjectVisitId))
|
||||
.SelectMany(x => x.NoneDicomFileList).Select(x => new GetReadingImgOutDto()
|
||||
{
|
||||
FileName = x.FileName,
|
||||
Path = x.Path
|
||||
}).ToListAsync();
|
||||
return (imgList,new {
|
||||
|
||||
|
||||
|
||||
List<NoneDicomStudyView> result=await _noneDicomStudyRepository.Where(t => visitIds.Contains(t.SubjectVisitId))
|
||||
|
||||
.ProjectTo<NoneDicomStudyView>(_mapper.ConfigurationProvider, new { token = _userInfo.UserToken }).ToListAsync();
|
||||
|
||||
|
||||
return (result, new {
|
||||
VisitTaskId= task.VisistTaskId
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue