From cf2d2398c62f5e13049d3ee92ffc12aa79cbfee5 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期四, 15 八月 2024 09:48:12 +0800 Subject: [PATCH] WoContext增加获取SN的下一个工序节点列表方法 --- Tiger.Api/Controllers/WMS/WMSController.MqCustomer.cs | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/Tiger.Api/Controllers/WMS/WMSController.MqCustomer.cs b/Tiger.Api/Controllers/WMS/WMSController.MqCustomer.cs index 2a3d914..6474cff 100644 --- a/Tiger.Api/Controllers/WMS/WMSController.MqCustomer.cs +++ b/Tiger.Api/Controllers/WMS/WMSController.MqCustomer.cs @@ -71,5 +71,26 @@ } return Ok(response); } + + /// <summary> + /// 淇濆瓨 + /// </summary> + /// <param name="action"></param> + /// <returns></returns> + [HttpPost] + [Route("api/[controller]/[action]")] + public async Task<IActionResult> SaveCustomer([FromBody] ApiAction<Customer> action) + { + ApiAction response = new(); + try + { + response = response.GetResponse(await DI.Resolve<ICustomer>().SaveCustomer(action.Data)); + } + catch (System.Exception ex) + { + response = response.GetResponse().CatchExceptionWithLog(ex); + } + return Ok(response); + } } } -- Gitblit v1.9.3