缺陷报表与合格率报表基础框架搭建
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Model.MES.qc.DTO;
|
||||
using ZR.Service.mes.qu.IService;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.qu
|
||||
{
|
||||
[Route("mes/qc/FQC/DefectReport")]
|
||||
public class DefectReportController : BaseController
|
||||
{
|
||||
private readonly IQcRoughService quRoughService;
|
||||
|
||||
public DefectReportController(IQcRoughService quRoughService)
|
||||
{
|
||||
this.quRoughService = quRoughService;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
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("getWorkOrderFqcTableData")]
|
||||
public IActionResult GetWorkOrderFqcTableData(
|
||||
[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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user