diff --git a/IRaCIS.Core.API/Controllers/UploadDownLoadController.cs b/IRaCIS.Core.API/Controllers/UploadDownLoadController.cs index cc755a617..77987a8ca 100644 --- a/IRaCIS.Core.API/Controllers/UploadDownLoadController.cs +++ b/IRaCIS.Core.API/Controllers/UploadDownLoadController.cs @@ -894,11 +894,12 @@ namespace IRaCIS.Core.API.Controllers #endregion - [HttpPost("download/PatientStudyBatchDownload")] + [HttpGet("download/PatientStudyBatchDownload")] public async Task DownloadPatientStudyBatch([FromServices] IPatientService _patientService, [FromServices] IOSSService _oSSService, [FromServices] IHubContext _downLoadHub, - PatientImageDownloadCommand inCommand) + [FromQuery] PatientImageDownloadCommand inCommand) { + inCommand.SCPStudyIdList = inCommand.SCPStudyIdList.Where(t => t != Guid.Empty).ToList(); var rusult = await _patientService.GetDownloadPatientStudyInfo(inCommand); var patientList = rusult.Data; diff --git a/IRaCIS.Core.Application/Service/Visit/DTO/PatientViewModel.cs b/IRaCIS.Core.Application/Service/Visit/DTO/PatientViewModel.cs index ed0661f3f..e9c0eb951 100644 --- a/IRaCIS.Core.Application/Service/Visit/DTO/PatientViewModel.cs +++ b/IRaCIS.Core.Application/Service/Visit/DTO/PatientViewModel.cs @@ -984,9 +984,9 @@ namespace IRaCIS.Application.Contracts public class PatientImageDownloadCommand { - public List PatientIdList { get; set; } + public List PatientIdList { get; set; } = new List(); - public List SCPStudyIdList { get; set; } + public List SCPStudyIdList { get; set; } = new List(); [NotDefault] public string CurrentNoticeId { get; set; }