From 0bfdff0ed0d8530485ef6d0bd735bfb256c5295a Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 15 八月 2024 16:14:44 +0800 Subject: [PATCH] 工序信息实体 --- Tiger.Api/Controllers/MES/SMTController.Tool.cs | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 42 insertions(+), 1 deletions(-) diff --git a/Tiger.Api/Controllers/MES/SMTController.Tool.cs b/Tiger.Api/Controllers/MES/SMTController.Tool.cs index 7f6bcc9..fda8ea0 100644 --- a/Tiger.Api/Controllers/MES/SMTController.Tool.cs +++ b/Tiger.Api/Controllers/MES/SMTController.Tool.cs @@ -1,5 +1,6 @@ 锘縰sing Microsoft.AspNetCore.Mvc; using Rhea.Common; +using System.Collections.Generic; using System.Threading.Tasks; using Tiger.IBusiness; using Tiger.Model; @@ -15,7 +16,7 @@ /// <returns></returns> [HttpPost] [Route("api/[controller]/[action]")] - public async Task<IActionResult> GetNotLoadingMaterial([FromBody] ApiAction<smtWoTableParams> action) + public async Task<IActionResult> GetNotLoadingMaterial([FromBody] ApiAction<SmtLoadingInput> action) { ApiAction response = new(); try @@ -28,5 +29,45 @@ } return Ok(response); } + /// <summary> + /// 瀵煎叆宸ュ崟鏂欑珯琛� + /// </summary> + /// <param name="action"></param> + /// <returns></returns> + [HttpPost] + [Route("api/[controller]/[action]")] + public async Task<IActionResult> ValidateTableImport([FromBody]List<smtWoTableIn> action) + { + ApiAction response = new(); + try + { + response = response.GetResponse(await DI.Resolve<ISmtTool>().ValidateTableImport(action)); + } + catch (System.Exception ex) + { + response = response.GetResponse().CatchExceptionWithLog(ex); + } + return Ok(response); + } + /// <summary> + /// 淇濆瓨瀵煎叆宸ュ崟鏂欑珯琛� + /// </summary> + /// <param name="action"></param> + /// <returns></returns> + [HttpPost] + [Route("api/[controller]/[action]")] + public async Task<IActionResult> SaveValidateTableImport([FromBody] List<smtWoTableIn> action) + { + ApiAction response = new(); + try + { + response = response.GetResponse(await DI.Resolve<ISmtTool>().SaveValidateTableImport(action)); + } + catch (System.Exception ex) + { + response = response.GetResponse().CatchExceptionWithLog(ex); + } + return Ok(response); + } } } -- Gitblit v1.9.3