From d1baa8a7633fc7042861916192a5ccc14ae02fa7 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期五, 23 八月 2024 08:52:08 +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