From 25724888bc329401891bf1600a8a83d8aae338b3 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期六, 27 四月 2024 18:37:37 +0800
Subject: [PATCH] 叠盘入库功能开发,空托入库逻辑优化

---
 代码管理/WMS/WMS_Server/WIDESEA_WebApi/Controllers/ToWms/ToWMSController.cs |   93 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 93 insertions(+), 0 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WebApi/Controllers/ToWms/ToWMSController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WebApi/Controllers/ToWms/ToWMSController.cs"
index ed5be07..bf51130 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WebApi/Controllers/ToWms/ToWMSController.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WebApi/Controllers/ToWms/ToWMSController.cs"
@@ -1,6 +1,7 @@
 锘縰sing Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Mvc;
 using WIDESEA_Core.Utilities;
+using WIDESEA_Entity.DomainModels;
 using WIDESEA_Entity.DomainModels.Mes;
 using WIDESEA_WMS;
 
@@ -10,6 +11,10 @@
     [ApiController]
     public class ToWMSController : ControllerBase
     {
+        private static readonly object OutsourceInboundobj = new object();
+        private static readonly object agvTransferListobj = new object();
+        private static readonly object shiftingparkingobj = new object();
+        private static readonly object GetStationobj = new object();
         /// <summary>
         /// 绉诲簱锛堟墜鍔紝涓存椂锛�
         /// </summary>
@@ -21,5 +26,93 @@
             return new ToMesServer().AddToFloat3(request);
         }
 
+        /// <summary>
+        /// 绉诲簱澶栧崗
+        /// </summary>
+        /// <param name="saveModel"></param>
+        /// <returns></returns>
+        [HttpPost, Route("agvTransferList")]
+        public WebResponseContent agvTransferList([FromBody] SaveModel saveModel)
+        {
+            lock (agvTransferListobj)
+            {
+                return new ToMesServer().agvTransferList(saveModel);
+            }
+        }
+
+        /// <summary>
+        /// 澶栧崗璐т綅鎵爜纭鐗╂枡宸茶鍙栬蛋
+        /// </summary>
+        /// <param name="saveModel"></param>
+        /// <returns></returns>
+        [HttpPost, Route("Confirmedcut")]
+        public WebResponseContent Confirmedcut([FromBody] SaveModel saveModel)
+        {
+            return new ToMesServer().Confirmedcut(saveModel);
+        }
+
+        /// <summary>
+        /// 鑾峰彇璐т綅
+        /// </summary>
+        /// <param name="request"></param>
+        /// <returns></returns>
+        [HttpPost, Route("GetStation")]
+        public WebResponseContent GetStation([FromBody] SaveModel saveModel)
+        {
+            lock (GetStationobj)
+            {
+                return new ToMesServer().GetStation(saveModel);
+            }
+        }
+
+        /// <summary>
+        /// 搴撳唴绉诲簱
+        /// </summary>
+        /// <param name="request"></param>
+        /// <returns></returns>
+        [HttpPost, Route("shiftingparking")]
+        public WebResponseContent shiftingparking([FromBody] SaveModel saveModel)
+        {
+            lock (shiftingparkingobj)
+            {
+                return new ToMesServer().shiftingparking(saveModel);
+            }
+        }
+
+        /// <summary>
+        /// 澶栧崗鍑哄簱(妫�娴嬩笂鏂�)
+        /// </summary>
+        /// <param name="request"></param>
+        /// <returns></returns>
+        [HttpPost, Route("OutsourceInbound")]
+        public WebResponseContent OutsourceInbound([FromBody] SaveModel saveModel)
+        {
+            lock (OutsourceInboundobj)
+            {
+                return new ToMesServer().OutsourceInbound(saveModel);
+            }
+        }
+
+        /// <summary>
+        /// 绌虹洏
+        /// </summary>
+        /// <param name="request"></param>
+        /// <returns></returns>
+        [HttpPost, Route("SendEpmtyTask")]
+        public WebResponseContent SendEpmtyTask([FromBody] SaveModel saveModel)
+        {
+            return new ToMesServer().SendEpmtyTask(saveModel);
+        }
+
+        /// <summary>
+        /// 缁戝畾杞﹁疆
+        /// </summary>
+        /// <param name="request"></param>
+        /// <returns></returns>
+        [HttpPost, Route("UpdateStation")]
+        public WebResponseContent UpdateStation([FromBody] SaveModel saveModel)
+        {
+            return new ToMesServer().UpdateStation(saveModel);
+        }
     }
 }

--
Gitblit v1.9.3