46 lines
1.7 KiB
C#
Raw Normal View History

2026-01-20 15:54:58 +08:00
using DOAN.Admin.WebApi.Filters;
using DOAN.Model.MES;
using DOAN.Model.MES.product.Dto;
using DOAN.Service.MES.product.IService;
2026-01-21 11:16:34 +08:00
using DOAN.Service.MES.report.IService;
2026-01-20 15:54:58 +08:00
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace DOAN.WebApi.Controllers
{
[Verify]
[Route("mes/reportManagement/report")]
[ApiExplorerSettings(GroupName = "MES")]
public class ReportController : BaseController
{
private readonly IProPlanAchievementrateVersion2Service _ProPlanAchievementrateVersion2Service;
2026-01-21 11:16:34 +08:00
private readonly IReportService _ReportService;
2026-01-20 15:54:58 +08:00
2026-01-21 11:16:34 +08:00
public ReportController(IProPlanAchievementrateVersion2Service ProPlanAchievementrateService, IReportService ReportService)
2026-01-20 15:54:58 +08:00
{
_ProPlanAchievementrateVersion2Service = ProPlanAchievementrateService;
2026-01-21 11:16:34 +08:00
_ReportService=ReportService;
2026-01-20 15:54:58 +08:00
}
/// <summary>
/// 月生产数据统计列表
/// </summary>
/// <param name="parm"></param>
/// <returns></returns>
[HttpGet("listMonth")]
2026-01-21 11:16:34 +08:00
//[ActionPermissionFilter(Permission = "productManagement:proplanachievementrate:list")]
2026-01-20 15:54:58 +08:00
public IActionResult QueryMonthProuct([FromQuery] MonthProuctDto parm)
{
var response = _ProPlanAchievementrateVersion2Service.GetQueryMonthProucth(parm);
return SUCCESS(response);
}
2026-01-21 11:16:34 +08:00
[HttpGet("devicePoweronRate")]
//[ActionPermissionFilter(Permission = "productManagement:proplanachievementrate:list")]
public IActionResult DevicePoweronRate()
{
var response = _ReportService.DevicePoweronRate(DateTime.Today);
return SUCCESS(response);
}
2026-01-20 15:54:58 +08:00
}
}