57 lines
1.8 KiB
C#
57 lines
1.8 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using ZR.Model.mes.pro;
|
|
using ZR.Model.MES.op.DTO;
|
|
using ZR.Service.mes.pro;
|
|
using ZR.Service.MES.op.IService;
|
|
|
|
namespace ZR.Admin.WebApi.Controllers.mes.op.quality
|
|
{
|
|
[Route("mes/op/operation/quality")]
|
|
public class QualityStatisticsController : BaseController
|
|
{
|
|
private readonly IOperationService operationService;
|
|
|
|
public QualityStatisticsController(IOperationService operationService)
|
|
{
|
|
this.operationService = operationService;
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 获取质量统计表
|
|
/// </summary>
|
|
/// <param name="workorderid"></param>
|
|
/// <param name="pageNum"></param>
|
|
/// <param name="pageSize"></param>
|
|
/// <param name="year"></param>
|
|
/// <param name="week"></param>
|
|
/// <param name="date"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("gueryQualityStatisticsTable")]
|
|
public IActionResult GueryQualityStatisticsTable(int pageNum, int pageSize, int year = -1, int week = -1, int date = -1, string workorderid = "")
|
|
{
|
|
(List<QcFqcDTO>, int) data = operationService.GueryQualityStatistics(workorderid,pageNum, pageSize, year, week, date);
|
|
|
|
return ToResponse(new ApiResult(200, "success", data));
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 获取缺陷项详情
|
|
/// </summary>
|
|
/// <param name="fkWorkorderId">工单</param>
|
|
/// <param name="order">缺陷项类型</param>
|
|
/// <returns></returns>
|
|
[HttpGet("QueryDetailsOfDetectionItems")]
|
|
public IActionResult QueryDetailsOfDetectionItems(string fkWorkorderId,int index)
|
|
{
|
|
List<DetailsOfDetectionDTO> data= operationService.QueryDetailsOfDetection(fkWorkorderId, index);
|
|
|
|
return ToResponse(new ApiResult(200, "success", data));
|
|
}
|
|
|
|
|
|
}
|
|
}
|