39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
|
|
using DOAN.Model.MES.dev.Dto;
|
|||
|
|
using DOAN.Service.MES.dev;
|
|||
|
|
using DOAN.Service.MES.dev.IService;
|
|||
|
|
using Microsoft.AspNetCore.Http;
|
|||
|
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
|
|
|||
|
|
namespace DOAN.WebApi.Controllers.MES.dev
|
|||
|
|
{
|
|||
|
|
[Route("api/DeviceMaintenancePerformance")]
|
|||
|
|
[ApiController]
|
|||
|
|
public class DeviceMaintenancePerformanceController : BaseController
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 设备保全率接口
|
|||
|
|
/// </summary>
|
|||
|
|
private readonly IDeviceMaintenancePerformanceService _deviceMaintenancePerformance;
|
|||
|
|
|
|||
|
|
public DeviceMaintenancePerformanceController(IDeviceMaintenancePerformanceService deviceMaintenancePerformance)
|
|||
|
|
{
|
|||
|
|
_deviceMaintenancePerformance = deviceMaintenancePerformance;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 查询设备运行绩效分析列表
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="startTime"></param>
|
|||
|
|
/// <param name="endTime"></param>
|
|||
|
|
/// <param name="workshop"></param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
[HttpGet]
|
|||
|
|
public async Task<IActionResult> QueryDevicePerformance(string startTime, string endTime, string workshop)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
var response = await _deviceMaintenancePerformance.DeviceUptimesAsync(startTime, endTime, workshop);
|
|||
|
|
return SUCCESS(response);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|