批量下载使用get请求
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
57515b2ecf
commit
9c3e72b1bb
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue