diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index f929f6fe2..a1001f959 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); //删除 物理文件