From 8326222e65f0bb258c99d93f1954d7696c4ef00d Mon Sep 17 00:00:00 2001 From: wankeda <Administrator@DESKTOP-HAU3ST3> Date: 星期三, 12 二月 2025 11:28:03 +0800 Subject: [PATCH] 1 --- WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs | 26 ++++++++++++++------------ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs b/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs index 85a63fe..f21de1c 100644 --- a/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs +++ b/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs @@ -159,10 +159,10 @@ return WebResponseContent.Instance.Error($"鏈壘鍒版墭鐩樺搴旂殑缁勭洏淇℃伅"); } - //if (!string.IsNullOrEmpty(dt_StockInfo.LocationCode)) - //{ - // return WebResponseContent.Instance.Error($"璇ユ墭鐩樺凡缁戝畾璐т綅"); - //} + if (!string.IsNullOrEmpty(dt_StockInfo.LocationCode)) + { + return WebResponseContent.Instance.Error($"璇ユ墭鐩樺凡缁戝畾璐т綅"); + } if (dt_StockInfo.Details == null || dt_StockInfo.Details.Count == 0) { @@ -174,10 +174,10 @@ return WebResponseContent.Instance.Error($"鏈壘鍒扮洰鏍囪揣浣嶄俊鎭�"); } - //if (dt_LocationInfo.LocationStatus == LocationStatusEnum.InStock.ObjToInt()) - //{ - // return WebResponseContent.Instance.Error($"璐т綅鐘舵�佷笉姝g‘"); - //} + if (dt_LocationInfo.LocationStatus == LocationStatusEnum.InStock.ObjToInt()) + { + return WebResponseContent.Instance.Error($"璐т綅鐘舵�佷笉姝g‘"); + } int lastStatus = dt_LocationInfo.LocationStatus; dt_LocationInfo.LocationStatus = LocationStatusEnum.InStock.ObjToInt(); @@ -525,10 +525,10 @@ { ApiType = "AuthenticationController", Parameters = new List<Parameter> - { + { new Parameter { Value = "LKAdmin"}, new Parameter { Value = "LKAdmin"}, - }, + }, Method = "Login", }; var responses1 = HttpHelper.Post<WebResponseContent>(ReceiveWMSTaskAUT, authentication, "鐧诲綍WMS璐﹀彿"); @@ -541,6 +541,8 @@ houseInboundPassBack.Context.Add("InvOrgId", InvOrgId); var responses = HttpHelper.Post<WebResponseContent>(ReceiveWMSTaskout, houseInboundPassBack, "绔嬪簱鍑哄簱鏁伴噺鍥炰紶WMS"); } + _stockService.StockInfoService.Repository.DeleteAndMoveIntoHty(stockInfo, App.User.UserId == 0 ? OperateType.鑷姩瀹屾垚 : OperateType.浜哄伐瀹屾垚); + _stockService.StockInfoDetailService.Repository.DeleteAndMoveIntoHty(stockInfo.Details, App.User.UserId == 0 ? OperateType.鑷姩瀹屾垚 : OperateType.浜哄伐瀹屾垚); } else if (outboundOrder.OrderType == 240) { @@ -634,9 +636,9 @@ inventoryAllocate.Context.Add("InvOrgId", InvOrgId); var responses = HttpHelper.Post<WebResponseContent>(ReceiveWMSTaskAllocatein, inventoryAllocate, "璋冩嫧鍑哄簱鏁伴噺鍥炰紶WMS"); } + _stockService.StockInfoService.Repository.DeleteAndMoveIntoHty(stockInfo, App.User.UserId == 0 ? OperateType.鑷姩瀹屾垚 : OperateType.浜哄伐瀹屾垚); + _stockService.StockInfoDetailService.Repository.DeleteAndMoveIntoHty(stockInfo.Details, App.User.UserId == 0 ? OperateType.鑷姩瀹屾垚 : OperateType.浜哄伐瀹屾垚); } - - return WebResponseContent.Instance.OK(); } catch (Exception ex) -- Gitblit v1.9.3