From b8a7cd6ebcc626ad867897b5d6d6336d8bc10d1c Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 11 Jul 2025 16:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9D=9Edicom=20=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=88=A0=E9=99=A4=EF=BC=8C=E6=A3=80=E6=9F=A5=E4=B8=8A?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E9=87=8F=E4=B8=8D=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/QC/QCOperationService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index e291927c2..326fa9958 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -961,6 +961,9 @@ namespace IRaCIS.Core.Application.Image.QA var noneDicomStudyFile = (await _noneDicomStudyFileRepository.Where(t => t.Id == noneDicomStudyFileId, true).IgnoreQueryFilters().FirstOrDefaultAsync()).IfNullThrowException(); + var noneDicomStudy = (await _noneDicomStudyRepository.Where(t => t.Id == noneDicomStudyFile.NoneDicomStudyId, true).IgnoreQueryFilters().FirstOrDefaultAsync()).IfNullThrowException(); + + if (state == 1) { noneDicomStudyFile.IsReading = false; @@ -972,10 +975,15 @@ namespace IRaCIS.Core.Application.Image.QA else if (state == 4) { noneDicomStudyFile.IsDeleted = true; + + noneDicomStudy.FileCount = noneDicomStudy.FileCount - 1; + } else if (state == 5) { noneDicomStudyFile.IsDeleted = false; + + noneDicomStudy.FileCount = noneDicomStudy.FileCount + 1; } }