From e3f218a023f0625f415a1526b278636c3e39aa4f Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期一, 18 八月 2025 12:59:32 +0800
Subject: [PATCH] 1

---
 WebAPI/ListModels.cs |   66 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 1 deletions(-)

diff --git a/WebAPI/ListModels.cs b/WebAPI/ListModels.cs
index 74bc0df..3b4e1f6 100644
--- a/WebAPI/ListModels.cs
+++ b/WebAPI/ListModels.cs
@@ -8,6 +8,7 @@
 using WebAPI.Code;
 using Model;
 using System.Data;
+using System.Text.RegularExpressions;
 
 namespace WebAPI
 {
@@ -223,6 +224,30 @@
         {
             jsonString = "[" + jsonString.ToString() + "]";
             List<Model.ClsKf_SellOutBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsKf_SellOutBillSub>>(jsonString);
+            return list;
+        }
+
+        /// <summary>
+        /// 瀹㈡埛鏍囩鍙嶅簭鍒楀寲
+        /// </summary>
+        /// <param name="jsonString"></param>
+        /// <returns></returns>
+        public List<Model.ClsSc_CustomerTagInfoMain> getCustomerTagInfoMainByJson(string jsonString)
+        {
+            jsonString = "[" + jsonString.ToString() + "]";
+            List<Model.ClsSc_CustomerTagInfoMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_CustomerTagInfoMain>>(jsonString);
+            return list;
+        }
+
+        /// <summary>
+        /// 瀹㈡埛鏍囩鍙嶅簭鍒楀寲瀛愯〃
+        /// </summary>
+        /// <param name="jsonString"></param>
+        /// <returns></returns>
+        public List<Model.ClsSc_CustomerTagInfoSub> getCustomerTagInfoSubByJson(string jsonString)
+        {
+            jsonString = "[" + jsonString.ToString() + "]";
+            List<Model.ClsSc_CustomerTagInfoSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_CustomerTagInfoSub>>(jsonString);
             return list;
         }
 
@@ -2142,7 +2167,10 @@
         /// <returns></returns>
         public List<Models.ClsGy_Material_Model> getObjectByJson_Gy_Material(string jsonString)
         {
-            jsonString = "[" + jsonString.ToString() + "]";
+            if (Regex.IsMatch(jsonString, @"^\[.*\]$") == false)
+            {
+                jsonString = "[" + jsonString.ToString() + "]";
+            }
             List<Models.ClsGy_Material_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.ClsGy_Material_Model>>(jsonString);
             return list;
         }
@@ -2350,6 +2378,18 @@
             List<Model.ClsGy_MatePriceSup_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_MatePriceSup_Model>>(jsonString);
             return list;
         }
+        /// <summary>
+        /// 澶勭悊閲囪喘浠锋牸琛ㄧ殑json
+        /// </summary>
+        /// <param name="jsonString"></param>
+        /// <returns></returns>
+        public List<Model.ClsGy_MatePrice_Model> getObjectByJson_Gy_MatePrice(string jsonString)
+        {
+            jsonString = "[" + jsonString.ToString() + "]";
+            List<Model.ClsGy_MatePrice_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_MatePrice_Model>>(jsonString);
+            return list;
+        }
+
 
         /// <summary>
         /// 澶勭悊鍣ㄥ叿鐘舵�佽〃鐨刯son
@@ -3831,6 +3871,30 @@
         }
 
         /// <summary>
+        /// 杞﹂棿瀹氫綅灏忚溅閿佸畾涓昏〃json
+        /// </summary>
+        /// <param name="jsonString"></param>
+        /// <returns></returns>
+        public List<Model.ClsKf_TrolleyPositionBillMain> getObjectByJson_Kf_TrolleyPositionBillMain(string jsonString)
+        {
+            jsonString = "[" + jsonString.ToString() + "]";
+            List<Model.ClsKf_TrolleyPositionBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsKf_TrolleyPositionBillMain>>(jsonString);
+            return list;
+        }
+
+        /// <summary>
+        /// 杞﹂棿瀹氫綅灏忚溅閿佸畾瀛愯〃json
+        /// </summary>
+        /// <param name="jsonString"></param>
+        /// <returns></returns>
+        public List<Model.ClsKf_TrolleyPositionBillSub> getObjectByJson_Kf_TrolleyPositionBillSub(string jsonString)
+        {
+            jsonString = "[" + jsonString.ToString() + "]";
+            List<Model.ClsKf_TrolleyPositionBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsKf_TrolleyPositionBillSub>>(jsonString);
+            return list;
+        }
+
+        /// <summary>
         /// 鎶ュ伐骞冲彴杩斿伐鍗曚富琛╦son
         /// </summary>
         /// <param name="jsonString"></param>

--
Gitblit v1.9.1