| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存默认工艺路线到产品 |
| | | /// </summary> |
| | | /// <param name="action"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> SetDefaultRoute([FromBody] ApiAction<ProdRotInput> action) |
| | | { |
| | | ApiAction response = new(); |
| | | try |
| | | { |
| | | response = response.GetResponse(await DI.Resolve<IRoute>().SetDefaultRoute(action.Data)); |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | response = response.GetResponse().CatchExceptionWithLog(ex); |
| | | } |
| | | return Ok(response); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存工单工艺节点岗位资源 |
| | | /// </summary> |
| | | /// <param name="action"></param> |