From baad883a45b5434117a7769354701c6aa607a5a9 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期日, 01 九月 2024 01:45:32 +0800
Subject: [PATCH] 工步增加工步名称和工步当前消息 优化了一些已知问题

---
 Tiger.Api/Controllers/MES/MESController.BIZ_MES_WO.cs |   65 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/Tiger.Api/Controllers/MES/MESController.BIZ_MES_WO.cs b/Tiger.Api/Controllers/MES/MESController.BIZ_MES_WO.cs
index 1620088..ab34030 100644
--- a/Tiger.Api/Controllers/MES/MESController.BIZ_MES_WO.cs
+++ b/Tiger.Api/Controllers/MES/MESController.BIZ_MES_WO.cs
@@ -3,6 +3,8 @@
 using System.Threading.Tasks;
 using Tiger.IBusiness;
 using Tiger.Model;
+using Tiger.Model.Entitys.MES.BizMesWo;
+using Tiger.Model.Entitys.MES.BizMesWoBatch;
 
 namespace Tiger.Api.Controllers.MES
 {
@@ -31,6 +33,27 @@
         }
 
         /// <summary>
+        /// 涓嬪彂淇濆瓨鎵规宸ュ崟
+        /// </summary>
+        /// <param name="action"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [Route("api/[controller]/[action]")]
+        public async Task<IActionResult> SaveMesBatchWo([FromBody] ApiAction<SaveWoBatchInput> action)
+        {
+            ApiAction response = new();
+            try
+            {
+                response = response.GetResponse(await DI.Resolve<IBIZ_MES_WO>().SaveMesBatchWo(action.Data));
+            }
+            catch (System.Exception ex)
+            {
+                response = response.GetResponse().CatchExceptionWithLog(ex);
+            }
+            return Ok(response);
+        }
+
+        /// <summary>
         /// 鍒犻櫎宸ュ崟
         /// </summary>
         /// <param name="action"></param>
@@ -50,5 +73,47 @@
             }
             return Ok(response);
         }
+
+        /// <summary>
+        /// 鏇存柊宸ュ崟鐘舵��
+        /// </summary>
+        /// <param name="action"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [Route("api/[controller]/[action]")]
+        public async Task<IActionResult> UpdateWoStatus([FromBody] ApiAction<BizMesWoInput> action)
+        {
+            ApiAction response = new();
+            try
+            {
+                response = response.GetResponse(await DI.Resolve<IBIZ_MES_WO>().UpdateWoStatus(action.Data));
+            }
+            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> UpdateWoBatchStatus([FromBody] ApiAction<BizMesWoInput> action)
+        {
+            ApiAction response = new();
+            try
+            {
+                response = response.GetResponse(await DI.Resolve<IBIZ_MES_WO>().UpdateWoBatchStatus(action.Data));
+            }
+            catch (System.Exception ex)
+            {
+                response = response.GetResponse().CatchExceptionWithLog(ex);
+            }
+            return Ok(response);
+        }
     }
 }

--
Gitblit v1.9.3