修正singR

This commit is contained in:
DESKTOP-H2PAFLR\Administrator
2023-10-12 09:36:03 +08:00
parent 39b86ccdf0
commit e43a04bc8f
18 changed files with 1290 additions and 120 deletions

View File

@@ -55,6 +55,9 @@ namespace ZR.Admin.WebApi.Controllers.mes.md
[HttpPost("addUnit")]
public IActionResult AddUnitmeasure([FromBody] MdUnit paramss)
{
if(paramss == null) {
return ToResponse(new ApiResult((int)ResultCode.NO_DATA, "null"));
}
paramss.ToCreate(HttpContext);
int result = unitService.InsertUnit(paramss);
return SUCCESS(result);

View File

@@ -1,8 +1,10 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.SignalR;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Hubs;
using ZR.Model.mes.md;
using ZR.Model.MES.op.DTO;
using ZR.Model.MES.op.ZR.Model.mes.md;
@@ -18,9 +20,11 @@ namespace ZR.Admin.WebApi.Controllers.MES.md
[Route("mes/op/operation")]
public class OperationController : BaseController
{
IOperationService operationService;
private readonly IOperationService operationService;
public OperationController(IOperationService operationService) {
this.operationService= operationService;
}
/// <summary>
/// 获取所有统计信息
@@ -34,6 +38,6 @@ namespace ZR.Admin.WebApi.Controllers.MES.md
return ToResponse(new ApiResult(200, "success", OpStatisticsList));
}
}
}