From fd3d16522e131cc20e82bec2c197409f6dcd80ab Mon Sep 17 00:00:00 2001 From: Demo <Demo@DESKTOP-CPA90BF> Date: 星期三, 31 一月 2024 08:51:16 +0800 Subject: [PATCH] Merge branch 'wxw' into csc --- Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs index 4f45bdc..5609bc5 100644 --- a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs +++ b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs @@ -847,6 +847,10 @@ { throw new Exception("鏈煡璇㈠埌鍗曟嵁鏄庣粏淇℃伅"); } + if (userId == notice.UpdateUser) + { + throw new Exception("澶嶆牳澶辫触锛屽鏍镐汉鍛樺拰鍏抽棴璁㈠崟浜哄憳涓嶈兘鐩稿悓锛�"); + } var list = new List<AsnDetail>(); foreach (var d in detail) { @@ -865,21 +869,26 @@ OrderCode = notice.OrderCode, AsnDetails = list }; - // 閫氳繃鎺ュ彛鍙戦�佽嚦erp - var jsonData = JsonConvert.SerializeObject(soInfo); + + #region 閫氳繃鎺ュ彛鍙戦�佽嚦erp + //绯荤粺瀵规帴鍚庢斁寮� + /*var jsonData = JsonConvert.SerializeObject(soInfo); var response = HttpHelper.DoPost(url, jsonData, "鍏ュ簱鍗曞畬鎴愪笂浼�", "ERP"); - //瑙f瀽杩斿洖鏁版嵁 - var obj = JsonConvert.DeserializeObject<ErpModel>(response); + var obj = JsonConvert.DeserializeObject<ErpModel>(response);//瑙f瀽杩斿洖鏁版嵁 if (obj.Success != 0) { throw new Exception("涓婁紶澶辫触" + obj.Message); - } + }*/ + #endregion + notice.Status = "4"; notice.UpdateTime = DateTime.Now; notice.UpdateUser = userId; Db.Updateable(notice).ExecuteCommand(); + + new OperationASNServer().AddLogOperationAsn("鍏ュ簱浣滀笟", "鍏ュ簱鍗曟嵁", notice.ASNNo, "澶嶆牳", $"澶嶆牳浜嗗崟鎹彿涓簕notice.ASNNo}鐨勫崟鎹俊鎭�", userId); return true; } catch (Exception e) -- Gitblit v1.8.0