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 { /// /// 生产大屏2 version 2 /// [AllowAnonymous] [Route("mes/BI/product2")] public class Product2Controller : BaseController { private readonly IProduct2BIService productBIService; public Product2Controller(IProduct2BIService _product2BIService) { productBIService = _product2BIService; } /// /// 数字牌 /// /// [HttpGet("getMoudle01")] public IActionResult GetMoudle01() { var response = productBIService.GetMoudle01(); return SUCCESS(response); } /// /// 班组进度统计 /// /// [HttpGet("getMoudle02")] public IActionResult GetMoudle02() { var response = productBIService.GetMoudle02(); return SUCCESS(response); } /// /// 昨天 班组报工数 和计划数对比 /// /// [HttpGet("getMoudle03")] public IActionResult GetMoudle03() { var response = productBIService.GetMoudle03(); return SUCCESS(response); } /// /// 昨天 各班组计划完成率统计 /// /// [HttpGet("getMoudle09")] public IActionResult GetMoudle09() { var response = productBIService.GetMoudle09(); return SUCCESS(response); } /// /// 上周各班组计划完成率统计 /// /// [HttpGet("getMoudle04")] public IActionResult GetMoudle04() { var response = productBIService.GetMoudle04(); return SUCCESS(response); } /// /// 上周 班组报工数 和计划数对比 折线图 不完成TOP /// /// [HttpGet("getMoudle10")] public IActionResult GetMoudle10() { var response = productBIService.GetMoudle10(); return SUCCESS(response); } /// /// 今天异常工单 /// /// [HttpGet("getMoudle05")] public IActionResult GetMoudle05() { var response = productBIService.GetMoudle05(); return SUCCESS(response); } /// /// 本月 工单达成率 /// /// [HttpGet("getMoudle06")] public IActionResult GetMoudle06() { var response = productBIService.GetMoudle06(); return SUCCESS(response); } /// /// 本月 生产产品 top10 /// /// [HttpGet("getMoudle07")] public IActionResult GetMoudle07() { var response = productBIService.GetMoudle07(); return SUCCESS(response); } /// /// 本月 报工不满原因 top10 /// /// [HttpGet("getMoudle77")] public IActionResult GetMoudle77() { var response = productBIService.GetMoudle77(); return SUCCESS(response); } //本月每天产量 [HttpGet("getMoudle08")] public IActionResult GetMoudle08() { var response = productBIService.GetMoudle08(); return SUCCESS(response); } //TODO 获取今天排班组 [HttpGet("get_schedule_group")] public IActionResult GetAllGrouops() { var response = productBIService.GetAllGrouops(); return SUCCESS(response); } //TODO 获取各时段各组累计报工数与计划节拍数对比 折线图 [HttpGet("AccumulateReportWork")] public IActionResult AccumulateReportWork(string groupCode) { var response = productBIService.AccumulateReportWork(groupCode); return SUCCESS(response); } } }