From 25abd822fc249e574ba3e90d34f7446b33cd9258 Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期六, 17 八月 2024 08:59:11 +0800
Subject: [PATCH] 问题修改

---
 Wms/WMS.DAL/SysInfrastructure/StorageLocatRepository.cs |   64 ++++++++++++++++----------------
 1 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/Wms/WMS.DAL/SysInfrastructure/StorageLocatRepository.cs b/Wms/WMS.DAL/SysInfrastructure/StorageLocatRepository.cs
index 54503c3..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();
@@ -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