using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.SignalR;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Hubs;
using ZR.Model.mes.md;
using ZR.Model.MES.op.DTO;
using ZR.Model.MES.op.ZR.Model.mes.md;
using ZR.Service.mes.md;
using ZR.Service.MES.md;
using ZR.Service.MES.md.IService;
using ZR.Service.MES.op;
using ZR.Service.MES.op.IService;
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace ZR.Admin.WebApi.Controllers.MES.md
{
[Route("mes/op/operation")]
public class OperationController : BaseController
{
private readonly IOperationService operationService;
public OperationController(IOperationService operationService) {
this.operationService= operationService;
}
///
/// 获取所有统计信息
///
/// 车间id
///
[HttpGet("getOperation")]
public IActionResult GetActionResult(string WorkerID = "1")
{
List OpStatisticsList= operationService.GetAllData(WorkerID);
return ToResponse(new ApiResult(200, "success", OpStatisticsList));
}
}
}