From 0464969366317154fdbb51e106ca778b855bdd08 Mon Sep 17 00:00:00 2001 From: wxw <Administrator@DESKTOP-5BIMHQ3> Date: 星期六, 17 八月 2024 15:45:28 +0800 Subject: [PATCH] Merge branch 'master' into wxw --- Wms/WMS.DAL/SysInfrastructure/StorageLocatRepository.cs | 66 ++++++++++++++++---------------- 1 files changed, 33 insertions(+), 33 deletions(-) diff --git a/Wms/WMS.DAL/SysInfrastructure/StorageLocatRepository.cs b/Wms/WMS.DAL/SysInfrastructure/StorageLocatRepository.cs index 509133c..92fb59a 100644 --- a/Wms/WMS.DAL/SysInfrastructure/StorageLocatRepository.cs +++ b/Wms/WMS.DAL/SysInfrastructure/StorageLocatRepository.cs @@ -93,23 +93,23 @@ outDtoList.Add(locatEntry2); // 姝e紡杩愯绋嬪簭鏀惧紑 - var jsonData = JsonConvert.SerializeObject(outDtoList); - string response = ""; + //var jsonData = JsonConvert.SerializeObject(outDtoList); + //string response = ""; - try - { - response = HttpHelper.DoPost(url, jsonData, "涓嬪彂缁橶CS鍚屾鍌ㄤ綅淇℃伅", "WCS"); - //瑙f瀽杩斿洖鏁版嵁 - var wcsModel = JsonConvert.DeserializeObject<WcsModel>(response); - if (wcsModel.StatusCode == -1) - { - throw new Exception(wcsModel.Msg); - } - } - catch (Exception ex) - { - throw new Exception(ex.Message); - } + //try + //{ + // response = HttpHelper.DoPost(url, jsonData, "涓嬪彂缁橶CS鍚屾鍌ㄤ綅淇℃伅", "WCS"); + // //瑙f瀽杩斿洖鏁版嵁 + // var wcsModel = JsonConvert.DeserializeObject<WcsModel>(response); + // if (wcsModel.StatusCode == -1) + // { + // throw new Exception(wcsModel.Msg); + // } + //} + //catch (Exception ex) + //{ + // throw new Exception(ex.Message); + //} } Db.CommitTran(); @@ -133,7 +133,7 @@ { try { - var locateList = GetAllWhereAsync(m => id.Contains(m.Id)).ToList(); + var locateList = GetAllWhere(m => id.Contains(m.Id)).ToList(); if (locateList.Count == 0) { throw new Exception($"涓烘煡璇㈠埌id涓簕id}鐨勫偍浣嶄俊鎭�"); @@ -195,23 +195,23 @@ if (i > 0) { // 姝e紡杩愯绋嬪簭鏀惧紑 - var jsonData = JsonConvert.SerializeObject(outDtoList); - string response = ""; + //var jsonData = JsonConvert.SerializeObject(outDtoList); + //string response = ""; - try - { - response = HttpHelper.DoPost(url, jsonData, "涓嬪彂缁橶CS鍑哄簱鍛戒护", "WCS"); - //瑙f瀽杩斿洖鏁版嵁 - var wcsModel = JsonConvert.DeserializeObject<WcsModel>(response); - if (wcsModel.StatusCode == -1) - { - throw new Exception(wcsModel.Msg); - } - } - catch (Exception ex) - { - throw new Exception(ex.Message); - } + //try + //{ + // response = HttpHelper.DoPost(url, jsonData, "涓嬪彂缁橶CS鍑哄簱鍛戒护", "WCS"); + // //瑙f瀽杩斿洖鏁版嵁 + // var wcsModel = JsonConvert.DeserializeObject<WcsModel>(response); + // if (wcsModel.StatusCode == -1) + // { + // throw new Exception(wcsModel.Msg); + // } + //} + //catch (Exception ex) + //{ + // throw new Exception(ex.Message); + //} } Db.CommitTran(); return i > 0; -- Gitblit v1.8.0