2023-10-11 16:56:25 +08:00
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2023-10-12 09:36:03 +08:00
|
|
|
|
using Microsoft.AspNetCore.SignalR;
|
2023-10-11 16:56:25 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
|
using ZR.Admin.WebApi.Extensions;
|
2023-10-12 09:36:03 +08:00
|
|
|
|
using ZR.Admin.WebApi.Hubs;
|
2023-10-11 16:56:25 +08:00
|
|
|
|
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
|
|
|
|
|
|
{
|
2023-10-12 09:36:03 +08:00
|
|
|
|
private readonly IOperationService operationService;
|
|
|
|
|
|
|
2023-10-11 16:56:25 +08:00
|
|
|
|
public OperationController(IOperationService operationService) {
|
|
|
|
|
|
this.operationService= operationService;
|
2023-10-12 09:36:03 +08:00
|
|
|
|
|
2023-10-11 16:56:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取所有统计信息
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="workshopid">车间id</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet("getOperation")]
|
|
|
|
|
|
public IActionResult GetActionResult(string WorkerID = "1")
|
|
|
|
|
|
{
|
|
|
|
|
|
List<OpStatisticsDTO> OpStatisticsList= operationService.GetAllData(WorkerID);
|
|
|
|
|
|
|
|
|
|
|
|
return ToResponse(new ApiResult(200, "success", OpStatisticsList));
|
|
|
|
|
|
}
|
2023-10-12 09:36:03 +08:00
|
|
|
|
|
2023-10-11 16:56:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|