forked from ddrilling/AsbCloudServer
Правки после ревью (пуш недостающего)
This commit is contained in:
parent
9b5bc227b0
commit
87d46f08e6
@ -25,7 +25,7 @@ namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||
public class ProcessMapWellDrillingController : ProcessMapBaseController<ProcessMapPlanWellDrillingDto>
|
||||
{
|
||||
private readonly IProcessMapReportDataSaubStatService processMapReportDataSaubStatService;
|
||||
private readonly IProcessMapReportWellDrillingExportService processMapReportDataSaubStatExportService;
|
||||
private readonly IProcessMapReportDataSaubStatExportService processMapReportDataSaubStatExportService;
|
||||
private readonly IProcessMapPlanImportService processMapPlanImportService;
|
||||
|
||||
protected override string SignalRGroup => "ProcessMapWellDrilling";
|
||||
@ -33,7 +33,7 @@ public class ProcessMapWellDrillingController : ProcessMapBaseController<Process
|
||||
public ProcessMapWellDrillingController(IWellService wellService,
|
||||
IProcessMapPlanRepository<ProcessMapPlanWellDrillingDto> repository,
|
||||
IUserRepository userRepository,
|
||||
IProcessMapReportWellDrillingExportService processMapReportDataSaubStatExportService,
|
||||
IProcessMapReportDataSaubStatExportService processMapReportDataSaubStatExportService,
|
||||
IProcessMapPlanImportService processMapPlanImportService,
|
||||
IProcessMapReportDataSaubStatService processMapReportDataSaubStatService,
|
||||
ICrudRepository<WellSectionTypeDto> wellSectionRepository,
|
||||
@ -67,14 +67,15 @@ public class ProcessMapWellDrillingController : ProcessMapBaseController<Process
|
||||
/// Экспорт отчета РТК бурение
|
||||
/// </summary>
|
||||
/// <param name="idWell">Id скважины</param>
|
||||
/// <param name="request">Параметры запроса</param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("report/export")]
|
||||
[ProducesResponseType(typeof(PhysicalFileResult), StatusCodes.Status200OK, "application/octet-stream")]
|
||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||
public async Task<IActionResult> ExportReportAsync(int idWell, CancellationToken cancellationToken)
|
||||
public async Task<IActionResult> ExportReportAsync(int idWell, [FromQuery] DataSaubStatRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
var report = await processMapReportDataSaubStatExportService.ExportAsync(idWell, cancellationToken);
|
||||
var report = await processMapReportDataSaubStatExportService.ExportAsync(idWell, request, cancellationToken);
|
||||
|
||||
if (report is null)
|
||||
return NoContent();
|
||||
|
Loading…
Reference in New Issue
Block a user