shgx_tz_mom/ZR.Admin.WebApi/Controllers/mes/op/OperationController.cs

32 lines
917 B
C#
Raw Normal View History

2024-06-07 11:04:26 +08:00
using Microsoft.AspNetCore.Mvc;
2023-10-11 16:56:25 +08:00
using ZR.Model.MES.op.DTO;
using ZR.Service.MES.op.IService;
namespace ZR.Admin.WebApi.Controllers.MES.md
{
[Route("mes/op/operation")]
public class OperationController : BaseController
{
2023-10-12 09:36:03 +08:00
private readonly IOperationService operationService;
2024-06-07 11:04:26 +08:00
public OperationController(IOperationService operationService)
{
this.operationService = operationService;
2023-10-11 16:56:25 +08:00
}
/// <summary>
/// 获取所有统计信息
/// </summary>
/// <param name="workshopid">车间id</param>
/// <returns></returns>
[HttpGet("getOperation")]
2024-06-07 11:04:26 +08:00
public IActionResult GetActionResult(string WorkerID = "1")
2023-10-11 16:56:25 +08:00
{
2024-06-07 11:04:26 +08:00
List<OpStatisticsDTO> OpStatisticsList = operationService.GetAllData(WorkerID);
2023-10-11 16:56:25 +08:00
return ToResponse(new ApiResult(200, "success", OpStatisticsList));
}
2024-06-07 11:04:26 +08:00
2023-10-11 16:56:25 +08:00
}
}