更新和删除
This commit is contained in:
@@ -40,5 +40,28 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
|
||||
[HttpPost("updateworkplan")]
|
||||
public IActionResult UpdateWorkPlan([FromBody] ProWorkplan proWorkplan)
|
||||
{
|
||||
int data = 0;
|
||||
if (proWorkplan != null)
|
||||
{
|
||||
data = proWorkplanService.UpdateWorkPlan(proWorkplan);
|
||||
}
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
|
||||
[HttpGet("deleteitem/{id}")]
|
||||
public IActionResult DeleteItem(string id)
|
||||
{
|
||||
int data = 0;
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
data = proWorkplanService.DeleteWorkPlan(id);
|
||||
}
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user