From e1386da5ae4acc110af4da04e4c3b92afa2619dd Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Mon, 15 Jun 2026 11:10:00 +0800 Subject: [PATCH] =?UTF-8?q?CRC=20CRA=E9=80=80=E5=87=BA=EF=BC=8C=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E9=87=8D=E4=BC=A0=E5=AE=A1=E6=89=B9=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRC.Core.Dicom/IRC.Core.Dicom.csproj | 3 +-- IRaCIS.Core.Application/Service/QC/QCListService.cs | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/IRC.Core.Dicom/IRC.Core.Dicom.csproj b/IRC.Core.Dicom/IRC.Core.Dicom.csproj index 6cf567230..e8bb43303 100644 --- a/IRC.Core.Dicom/IRC.Core.Dicom.csproj +++ b/IRC.Core.Dicom/IRC.Core.Dicom.csproj @@ -7,7 +7,6 @@ - @@ -20,7 +19,7 @@ - + true diff --git a/IRaCIS.Core.Application/Service/QC/QCListService.cs b/IRaCIS.Core.Application/Service/QC/QCListService.cs index ac09557a7..aa201f5ef 100644 --- a/IRaCIS.Core.Application/Service/QC/QCListService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCListService.cs @@ -40,8 +40,10 @@ namespace IRaCIS.Core.Application.Image.QA public async Task>> GetImageBackList(ImageBackQueryDto inQuery) { var svExpression = QCCommon.GetSubjectVisitImageBackRecordFilter(inQuery.VisitPlanArray); + var isCRC = _userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CRA; var query = _subjectVisitImageBackRecordReposiotry.Where(t => t.SubjectVisit.TrialId == inQuery.TrialId) + .WhereIf(isCRC == true, t => t.SubjectVisit.Trial.TrialSiteUserList.Any(t => t.UserId == _userInfo.UserRoleId)) .WhereIf(inQuery.TrialSiteId != null, t => t.SubjectVisit.TrialSiteId == inQuery.TrialSiteId) .WhereIf(!string.IsNullOrEmpty(inQuery.SubjectCode), t => t.SubjectVisit.Subject.Code.Contains(inQuery.SubjectCode)) .WhereIf(!string.IsNullOrEmpty(inQuery.VisitName), t => t.SubjectVisit.VisitName.Contains(inQuery.VisitName))