计划于物流结束
This commit is contained in:
@@ -11,6 +11,7 @@ using ZR.Model.MES.qc.DTO;
|
||||
using ZR.Service.mes.pro;
|
||||
using ZR.Service.mes.pro.IService;
|
||||
using ZR.Service.mes.qu.IService;
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.qu
|
||||
{
|
||||
@@ -40,5 +41,19 @@ namespace ZR.Admin.WebApi.Controllers.mes.qu
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新统计表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpGet("updateStatisticsTable")]
|
||||
public IActionResult UpdateStatisticsTable(string id, int actualNumber, int randomRate, int ngs, int oks, decimal oksRatio,int Isqualified)
|
||||
{
|
||||
|
||||
if (string.IsNullOrEmpty(id))
|
||||
return ToResponse(new ApiResult(200, "success", 0));
|
||||
int result = quRoughService.UpdateStatisticsTable(id, actualNumber, randomRate, ngs, oks, oksRatio,Isqualified);
|
||||
return ToResponse(new ApiResult(200, "success", result));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
using Infrastructure.Extensions;
|
||||
using JinianNet.JNTemplate;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Text.Json;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.qc
|
||||
{
|
||||
|
||||
|
||||
[Route("mes/qc/IQC")]
|
||||
public class QcinspectionItemController : BaseController
|
||||
{
|
||||
readonly IQcinspectionItemService qcinspection;
|
||||
|
||||
public QcinspectionItemController(IQcinspectionItemService qcinspection)
|
||||
{
|
||||
|
||||
this.qcinspection= qcinspection;
|
||||
}
|
||||
|
||||
|
||||
[HttpGet]
|
||||
public ActionResult Get()
|
||||
{
|
||||
return qcinspection.Get();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user