53 lines
1.3 KiB
C#
Raw Normal View History

using Microsoft.AspNetCore.Mvc;
using DOAN.Admin.WebApi.Filters;
using DOAN.Infrastructure;
using DOAN.Service.MES.Console_.IService;
2024-11-07 09:34:15 +08:00
namespace DOAN.Admin.WebApi.Controllers;
/// <summary>
/// 控制台 显示概览信息
/// </summary>
2024-11-06 18:32:46 +08:00
[Route("mes/Console")]
[AllowAnonymous]
public class ConsoleController : BaseController
{
2024-11-07 09:34:15 +08:00
private readonly IConsoleService consoleService;
2024-11-07 13:40:44 +08:00
public ConsoleController(IConsoleService consoleService)
{
2024-11-07 13:40:44 +08:00
this.consoleService = consoleService;
}
2024-11-06 18:32:46 +08:00
//TODO 获取色块看板信息
/// <summary>
/// 获取色块看板信息 模块1
/// </summary>
/// <returns></returns>
[HttpGet("get_moudel01")]
public IActionResult GetColorBlockKanbanInformation()
{
var response = consoleService.GetColorBlockKanbanInformation();
return SUCCESS(response);
}
2024-12-10 09:13:15 +08:00
2024-11-07 13:53:33 +08:00
//TODO 产线 工单数/任务数
2024-11-07 13:40:44 +08:00
[HttpGet("get_moudel02")]
public IActionResult GetLineOfTaskNumAndWorkorder()
{
var response = consoleService.GetLineOfTaskNumAndWorkorder();
return SUCCESS(response);
}
2024-11-07 13:53:33 +08:00
//TODO 班组工单数 今日班组产能
2024-11-07 13:55:39 +08:00
[HttpGet("get_moudel03")]
2024-11-07 13:53:33 +08:00
public IActionResult GetGroupWorkOrderNum()
{
var response = consoleService.GetGroupWorkOrderNum();
return SUCCESS(response);
}
}