35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using DOAN.Admin.WebApi.Filters;
|
|
using DOAN.Model.MES;
|
|
using DOAN.Model.MES.product.Dto;
|
|
using DOAN.Service.MES.product.IService;
|
|
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;
|
|
|
|
public ReportController(IProPlanAchievementrateVersion2Service ProPlanAchievementrateService)
|
|
{
|
|
_ProPlanAchievementrateVersion2Service = ProPlanAchievementrateService;
|
|
}
|
|
/// <summary>
|
|
/// 月生产数据统计列表
|
|
/// </summary>
|
|
/// <param name="parm"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("listMonth")]
|
|
[ActionPermissionFilter(Permission = "productManagement:proplanachievementrate:list")]
|
|
public IActionResult QueryMonthProuct([FromQuery] MonthProuctDto parm)
|
|
{
|
|
var response = _ProPlanAchievementrateVersion2Service.GetQueryMonthProucth(parm);
|
|
return SUCCESS(response);
|
|
}
|
|
}
|
|
}
|