修改影像下载检查过滤2
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-11-24 15:57:13 +08:00
parent 49e4980fd0
commit efbaae2a97
1 changed files with 3 additions and 1 deletions

View File

@ -3389,7 +3389,9 @@ namespace IRaCIS.Application.Services
t.PatientName,
t.PatientIdStr,
StudyList = t.SCPStudyList.Where(t => studyIdList.Count > 0 ? studyIdList.Contains(t.Id) : true).Select(st => new DownloadDicomStudyDto()
StudyList = t.SCPStudyList.Where(t => studyIdList.Count > 0 ? studyIdList.Contains(t.Id) : true)
.Where(t => isAdminOrOA ? true : t.HospitalGroupList.Any(c => currentUserHospitalGroupIdList.Contains(c.HospitalGroupId)))
.Select(st => new DownloadDicomStudyDto()
{
PatientId = st.PatientIdStr,