From bc5ca69bdc14940af324aefefed96897098723f2 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 27 Aug 2026 10:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=8E=A5=E5=8F=A3=E5=8F=98?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs | 7 +++++++ .../Service/ImageAndDoc/DownloadAndUploadService.cs | 11 ++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs index f8decefde..b4468d895 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs @@ -1073,6 +1073,13 @@ namespace IRaCIS.Core.Application.Contracts public string? Name { get; set; } } + public class DownloadImageSuccessCommand + { + public Guid TrialImageDownloadId { get; set; } + + public List VisitTaskIdList { get; set; } + } + public class SubjectVisitTaskInfo { public Guid SubjectVisitId { get; set; } diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs index c1cff3b64..6fcafeaed 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs @@ -1888,16 +1888,17 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc /// /// 影像下载成功回调 /// - /// + /// + /// - public async Task DownloadImageSuccess(Guid trialImageDownloadId, Guid? visitTaskId) + public async Task DownloadImageSuccess(DownloadImageSuccessCommand incommand) { - await _trialImageDownloadRepository.UpdatePartialFromQueryAsync(t => t.Id == trialImageDownloadId, u => new TrialImageDownload() + await _trialImageDownloadRepository.UpdatePartialFromQueryAsync(t => t.Id == incommand.TrialImageDownloadId, u => new TrialImageDownload() { DownloadEndTime = DateTime.Now, IsSuccess = true }, true); - if (visitTaskId != null) + if (incommand.VisitTaskIdList != null && incommand.VisitTaskIdList.Count > 0) { - await _visitTaskRepository.BatchUpdateNoTrackingAsync(t => t.Id == visitTaskId.Value, u => new VisitTask() { IsIRImageDownloaded = true }); + await _visitTaskRepository.BatchUpdateNoTrackingAsync(t => incommand.VisitTaskIdList.Contains(t.Id), u => new VisitTask() { IsIRImageDownloaded = true }); } return ResponseOutput.Ok(); }