47 lines
1.6 KiB
C#
47 lines
1.6 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using ZR.Model.MES.DTO;
|
|
using ZR.Model.MES.qc.DTO;
|
|
using ZR.Service.mes.IService;
|
|
using ZR.Service.mes.qu.IService;
|
|
|
|
namespace ZR.Admin.WebApi.Controllers.mes.qu
|
|
{
|
|
[Route("mes/qc/FQC/QualificationRateReport")]
|
|
public class QualificationRateReportController : BaseController
|
|
{
|
|
private readonly IQualificationRateReportService qualificationRateReportService;
|
|
|
|
public QualificationRateReportController(
|
|
IQualificationRateReportService qualificationRateReportService
|
|
)
|
|
{
|
|
this.qualificationRateReportService = qualificationRateReportService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 分页获取合格率报表数据
|
|
/// </summary>
|
|
/// <param name="query">查询值</param>
|
|
/// <returns>QcCommonFqcBoardDto 看板数据</returns>
|
|
[HttpPost("GetQualificationRateReport")]
|
|
public IActionResult GetQualificationRateReport(
|
|
[FromBody] QualificationRateReportQueryDTO query
|
|
)
|
|
{
|
|
try
|
|
{
|
|
var result = qualificationRateReportService.GetQualificationRateReport(query);
|
|
if (result == null)
|
|
{
|
|
return ToResponse(new ApiResult(500, "获取数据列表异常-01:返回值为空", result));
|
|
}
|
|
return ToResponse(new ApiResult(200, "ok", result));
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return ToResponse(new ApiResult(500, ex.Message, ex.Message));
|
|
}
|
|
}
|
|
}
|
|
}
|