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