修正singR
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user