批量下载使用get请求
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-12-23 10:16:15 +08:00
parent 57515b2ecf
commit 9c3e72b1bb
2 changed files with 5 additions and 4 deletions

View File

@ -894,11 +894,12 @@ namespace IRaCIS.Core.API.Controllers
#endregion #endregion
[HttpPost("download/PatientStudyBatchDownload")] [HttpGet("download/PatientStudyBatchDownload")]
public async Task<IActionResult> DownloadPatientStudyBatch([FromServices] IPatientService _patientService, [FromServices] IOSSService _oSSService, public async Task<IActionResult> DownloadPatientStudyBatch([FromServices] IPatientService _patientService, [FromServices] IOSSService _oSSService,
[FromServices] IHubContext<DownloadHub, IDownloadClient> _downLoadHub, [FromServices] IHubContext<DownloadHub, IDownloadClient> _downLoadHub,
PatientImageDownloadCommand inCommand) [FromQuery] PatientImageDownloadCommand inCommand)
{ {
inCommand.SCPStudyIdList = inCommand.SCPStudyIdList.Where(t => t != Guid.Empty).ToList();
var rusult = await _patientService.GetDownloadPatientStudyInfo(inCommand); var rusult = await _patientService.GetDownloadPatientStudyInfo(inCommand);
var patientList = rusult.Data; var patientList = rusult.Data;

View File

@ -984,9 +984,9 @@ namespace IRaCIS.Application.Contracts
public class PatientImageDownloadCommand public class PatientImageDownloadCommand
{ {
public List<Guid> PatientIdList { get; set; } public List<Guid> PatientIdList { get; set; } = new List<Guid>();
public List<Guid> SCPStudyIdList { get; set; } public List<Guid> SCPStudyIdList { get; set; } = new List<Guid>();
[NotDefault] [NotDefault]
public string CurrentNoticeId { get; set; } public string CurrentNoticeId { get; set; }