Files
kunshan-bzfm-mes-backend/DOAN.Admin.WebApi/Controllers/MES/SmartScreen/Quality/QualitySmartController.cs

93 lines
2.3 KiB
C#
Raw Normal View History

2025-03-27 15:17:23 +08:00
using DOAN.Admin.WebApi.Filters;
using DOAN.Service.MES.SmartScreen.Order;
using DOAN.Service.MES.SmartScreen.Order.IService;
using DOAN.Service.MES.SmartScreen.Quality.IService;
using Microsoft.AspNetCore.Mvc;
namespace DOAN.Admin.WebApi.Controllers.MES.SmartScreen.Quality
{
/// <summary>
/// 质量大屏
/// </summary>
[Verify]
[Route("mes/qualityManagement/QualitySmart")]
public class QualitySmartController : BaseController
{
/// <summary>
/// 质量大屏接口
/// </summary>
private readonly IQualitySmartService _QualitySmartService;
public QualitySmartController(IQualitySmartService QualitySmartService)
{
_QualitySmartService = QualitySmartService;
}
/// <summary>
/// 查询质量大屏头信息
/// </summary>
/// <returns></returns>
[HttpGet("GetQualityScreenHead")]
2025-03-27 16:15:33 +08:00
[AllowAnonymous]
2025-03-27 15:17:23 +08:00
public IActionResult GetQualityScreenHead()
{
var response = _QualitySmartService.GetQualityScreenHead();
return SUCCESS(response);
}
/// <summary>
/// 按周获取质量大屏数据
/// </summary>
/// <returns></returns>
[HttpGet("GetQualitySmartScreenForWeek")]
2025-03-27 16:15:33 +08:00
[AllowAnonymous]
2025-03-27 15:17:23 +08:00
public IActionResult GetQualitySmartScreenForWeek()
{
var response = _QualitySmartService.GetQualitySmartScreenForWeek();
return SUCCESS(response);
}
/// <summary>
/// 按月获取质量大屏数据
/// </summary>
/// <returns></returns>
[HttpGet("GetQualitySmartScreenForMonth")]
2025-03-27 18:34:05 +08:00
[AllowAnonymous]
2025-03-27 15:17:23 +08:00
public IActionResult GetQualitySmartScreenForMonth()
{
var response = _QualitySmartService.GetQualitySmartScreenForMonth();
return SUCCESS(response);
}
2025-03-27 18:34:05 +08:00
/// <summary>
/// 按月获取质量大屏数据数状图
/// </summary>
/// <returns></returns>
[HttpGet("GetQualitySmartScreenForBarChart")]
[AllowAnonymous]
public IActionResult GetQualitySmartScreenForBarChart()
{
var response = _QualitySmartService.GetQualitySmartScreenForBarChart();
return SUCCESS(response);
}
2025-03-27 20:01:44 +08:00
/// <summary>
/// 按月获取质量大屏数据折线图
/// </summary>
/// <returns></returns>
[HttpGet("GetQualitySmartScreenForLineChart")]
[AllowAnonymous]
public IActionResult GetQualitySmartScreenForLineChart()
{
var response = _QualitySmartService.GetQualitySmartScreenForLineChart();
return SUCCESS(response);
}
2025-03-27 15:17:23 +08:00
}
}