修改create update
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Model.mes.md;
|
||||
using ZR.Model.mes.pro;
|
||||
using ZR.Service.mes.pro.IService;
|
||||
@@ -35,6 +36,7 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
if (proWorkplan!=null)
|
||||
{
|
||||
data = proWorkplanService.AddWorkPlan(proWorkplan);
|
||||
proWorkplan.ToCreate(HttpContext);
|
||||
}
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
@@ -47,6 +49,7 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
if (proWorkplan != null)
|
||||
{
|
||||
data = proWorkplanService.UpdateWorkPlan(proWorkplan);
|
||||
proWorkplan.ToUpdate(HttpContext);
|
||||
}
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace ZR.Admin.WebApi.Extensions
|
||||
|
||||
|
||||
|
||||
|
||||
return source;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user