From c3a0ada88f538281e77b0279bb4af965b1ca2ffd Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 29 Apr 2022 16:53:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/QC/QCOperationService.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index 25f9325b9..3ae650155 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -35,6 +35,7 @@ namespace IRaCIS.Core.Application.Image.QA private readonly IRepository _qcChallengeRepository; private readonly IRepository _dicomStudyRepository; private readonly IRepository _dictionaryrepository; + private readonly IRepository _subjectRepository; private readonly IRepository _trialRepository; private readonly IMediator _mediator; private readonly IInspectionService _inspectionService; @@ -50,7 +51,8 @@ namespace IRaCIS.Core.Application.Image.QA IInspectionService inspectionService, IDictionaryService dictionaryService, IRepository dicomStudyRepository, - IRepository dictionaryrepository + IRepository dictionaryrepository, + IRepository subjectRepository ) { _dicomFileStoreHelper = dicomFileStoreHelper; @@ -58,6 +60,7 @@ namespace IRaCIS.Core.Application.Image.QA _qcChallengeRepository = qcChallengeRepository; _dicomStudyRepository = dicomStudyRepository; this._dictionaryrepository = dictionaryrepository; + this._subjectRepository = subjectRepository; _mediator = mediator; _trialRepository = trialRepository; _inspectionService = inspectionService; @@ -1937,11 +1940,9 @@ namespace IRaCIS.Core.Application.Image.QA if (command.SubjectFirstGiveMedicineTime != null) { - await _repository.BatchUpdateAsync(t => t.Id == command.SubjectId, u => new Subject() - { - FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime, - }); + await _subjectRepository.UpdatePartialFromQueryAsync(command.SubjectId, u => new Subject() { FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime, }); + List datas = new List();