From 1afda263b38b4ac80710e3b3e298d27249bddfa5 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Sat, 7 May 2022 10:16:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/QC/QCOperationService.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index f929f6fe..a1001f95 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -31,6 +31,8 @@ namespace IRaCIS.Core.Application.Image.QA private readonly IRepository _subjectVisitRepository; private readonly IRepository _qcChallengeRepository; private readonly IRepository _dicomStudyRepository; + private readonly IRepository _dictionaryrepository; + private readonly IRepository _dicomSeriesrepository; private readonly IRepository _subjectRepository; private readonly IRepository _trialRepository; private readonly IMediator _mediator; @@ -41,7 +43,11 @@ namespace IRaCIS.Core.Application.Image.QA IRepository qcChallengeRepository, IRepository trialRepository, IMediator mediator, + IInspectionService inspectionService, + IDictionaryService dictionaryService, IRepository dicomStudyRepository, + IRepository dictionaryrepository, + IRepository dicomSeriesrepository, IRepository subjectRepository ) { @@ -49,6 +55,8 @@ namespace IRaCIS.Core.Application.Image.QA _subjectVisitRepository = subjectVisitRepository; _qcChallengeRepository = qcChallengeRepository; _dicomStudyRepository = dicomStudyRepository; + this._dictionaryrepository = dictionaryrepository; + this._dicomSeriesrepository = dicomSeriesrepository; this._subjectRepository = subjectRepository; _mediator = mediator; _trialRepository = trialRepository; @@ -896,7 +904,7 @@ namespace IRaCIS.Core.Application.Image.QA - var success3 = await _repository.BatchDeleteAsync(t => t.StudyId == id); + var success3 = await _dicomSeriesrepository.DeleteFromQueryAsync(t => t.StudyId == id); var success4 = await _repository.BatchDeleteAsync(t => t.StudyId == id); //删除 物理文件