修改一版
parent
58fe222837
commit
ee76c858eb
|
@ -1193,8 +1193,6 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
dbSubjectVisit.AuditState = AuditStateEnum.ToAudit;
|
dbSubjectVisit.AuditState = AuditStateEnum.ToAudit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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>();
|
||||||
|
@ -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());
|
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()
|
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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue