修正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));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ using ZR.Service.System.IService;
|
||||
namespace ZR.Admin.WebApi.Hubs
|
||||
{
|
||||
/// <summary>
|
||||
/// msghub
|
||||
/// msghub OperationHub
|
||||
/// </summary>
|
||||
public class MessageHub : Hub
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
|
||||
<PackageReference Include="Lazy.Captcha.Core" Version="2.0.3" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.7" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="7.0.6" />
|
||||
<PackageReference Include="UAParser" Version="3.1.47" />
|
||||
|
||||
Reference in New Issue
Block a user