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>
|
public class ProcessMapWellDrillingController : ProcessMapBaseController<ProcessMapPlanWellDrillingDto>
|
||||||
{
|
{
|
||||||
private readonly IProcessMapReportDataSaubStatService processMapReportDataSaubStatService;
|
private readonly IProcessMapReportDataSaubStatService processMapReportDataSaubStatService;
|
||||||
private readonly IProcessMapReportWellDrillingExportService processMapReportDataSaubStatExportService;
|
private readonly IProcessMapReportDataSaubStatExportService processMapReportDataSaubStatExportService;
|
||||||
private readonly IProcessMapPlanImportService processMapPlanImportService;
|
private readonly IProcessMapPlanImportService processMapPlanImportService;
|
||||||
|
|
||||||
protected override string SignalRGroup => "ProcessMapWellDrilling";
|
protected override string SignalRGroup => "ProcessMapWellDrilling";
|
||||||
@ -33,7 +33,7 @@ public class ProcessMapWellDrillingController : ProcessMapBaseController<Process
|
|||||||
public ProcessMapWellDrillingController(IWellService wellService,
|
public ProcessMapWellDrillingController(IWellService wellService,
|
||||||
IProcessMapPlanRepository<ProcessMapPlanWellDrillingDto> repository,
|
IProcessMapPlanRepository<ProcessMapPlanWellDrillingDto> repository,
|
||||||
IUserRepository userRepository,
|
IUserRepository userRepository,
|
||||||
IProcessMapReportWellDrillingExportService processMapReportDataSaubStatExportService,
|
IProcessMapReportDataSaubStatExportService processMapReportDataSaubStatExportService,
|
||||||
IProcessMapPlanImportService processMapPlanImportService,
|
IProcessMapPlanImportService processMapPlanImportService,
|
||||||
IProcessMapReportDataSaubStatService processMapReportDataSaubStatService,
|
IProcessMapReportDataSaubStatService processMapReportDataSaubStatService,
|
||||||
ICrudRepository<WellSectionTypeDto> wellSectionRepository,
|
ICrudRepository<WellSectionTypeDto> wellSectionRepository,
|
||||||
@ -67,14 +67,15 @@ public class ProcessMapWellDrillingController : ProcessMapBaseController<Process
|
|||||||
/// Экспорт отчета РТК бурение
|
/// Экспорт отчета РТК бурение
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="idWell">Id скважины</param>
|
/// <param name="idWell">Id скважины</param>
|
||||||
|
/// <param name="request">Параметры запроса</param>
|
||||||
/// <param name="cancellationToken"></param>
|
/// <param name="cancellationToken"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet("report/export")]
|
[HttpGet("report/export")]
|
||||||
[ProducesResponseType(typeof(PhysicalFileResult), StatusCodes.Status200OK, "application/octet-stream")]
|
[ProducesResponseType(typeof(PhysicalFileResult), StatusCodes.Status200OK, "application/octet-stream")]
|
||||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
[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)
|
if (report is null)
|
||||||
return NoContent();
|
return NoContent();
|
||||||
|
Loading…
Reference in New Issue
Block a user