32 lines
917 B
C#
32 lines
917 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
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
|
|
{
|
|
private readonly IOperationService operationService;
|
|
|
|
public OperationController(IOperationService operationService)
|
|
{
|
|
this.operationService = operationService;
|
|
|
|
}
|
|
/// <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));
|
|
}
|
|
|
|
}
|
|
}
|