using Microsoft.AspNetCore.Mvc; using DOAN.Admin.WebApi.Filters; using DOAN.Service.MES.bigScreen.IService; using DOAN.Infrastructure; using DOAN.Model.MES.bigscreen.Dto; using DOAN.Model.mes.echarts; namespace DOAN.WebApi.Controllers.MES.BigScreen { /// /// 生产大屏 /// [AllowAnonymous] [Route("mes/bigscreen/product")] public class ProductController : BaseController { private readonly IProductBigScreenService productBigScreenService; public ProductController(IProductBigScreenService _productBigScreenService) { productBigScreenService = _productBigScreenService; } // GET ProductBigScreenMoudle01Dto /// /// 获取产量 /// /// [HttpGet("get_moudle01")] public IActionResult GetMoudle01() { ProductBigScreenMoudle01Dto response = productBigScreenService.GetMoudle01(); return SUCCESS(response); } /// /// 前7日产量趋势统计图 (折线图) /// /// [HttpGet("get_moudle02")] public IActionResult GetMoudle02() { EchartsOptions response= productBigScreenService.GetMoudle02(); return SUCCESS(response); } /// /// 前7日工单趋势统计图 (直方图) /// /// [HttpGet("get_moudle03")] public IActionResult GetMoudle03() { EchartsOptions response= productBigScreenService.GetMoudle03(); return SUCCESS(response); } /// /// 今日超时工单占比 /// /// [HttpGet("get_moudle04")] public IActionResult GetMoudle04() { EchartsOptions response= productBigScreenService.GetMoudle04(); return SUCCESS(response); } /// /// 前七日工单异常分布占比 /// /// [HttpGet("get_moudle05")] public IActionResult GetMoudle05() { EchartsOptions response= productBigScreenService.GetMoudle05(); return SUCCESS(response); } /// /// 获取今日工单列表 /// /// [HttpGet("get_moudle06")] public IActionResult GetMoudle06() { var response= productBigScreenService.GetMoudle06(); return SUCCESS(response); } /// /// 获取今日异常工单列表 /// /// [HttpGet("get_moudle07")] public IActionResult GetMoudle07() { var response= productBigScreenService.GetMoudle07(); return SUCCESS(response); } /// /// 获取昨天工单报工数 /// /// [HttpGet("get_moudle08")] public IActionResult GetMoudle08() { var response= productBigScreenService.GetMoudle08(); return SUCCESS(response); } } }