From a8756c3526832332db4ef5685348d9b188c2bf2b Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期六, 13 九月 2025 08:36:44 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/Utilities/EntityProperties.cs |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Utilities/EntityProperties.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Utilities/EntityProperties.cs"
index a57e31b..bf691b9 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Utilities/EntityProperties.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Utilities/EntityProperties.cs"
@@ -88,16 +88,19 @@
                 else
                 {
 
-                    int length = sugarColumn.Length;
-                    if (length == 0) { return (true, null, value); }
-                    //鍒ゆ柇鍙屽瓧鑺備笌鍗曞瓧娈�
-                    else if (length < 8000 &&
-                        ((dbType.Substring(0, 1) != "n"
-                        && Encoding.UTF8.GetBytes(val.ToCharArray()).Length > length)
-                         || val.Length > length)
-                         )
+                    if (sugarColumn != null)
                     {
-                        reslutMsg = $"鏈�澶氬彧鑳姐�恵length}銆戜釜瀛楃銆�";
+                        int length = sugarColumn.Length;
+                        if (length == 0) { return (true, null, null); }
+                        //鍒ゆ柇鍙屽瓧鑺備笌鍗曞瓧娈�
+                        else if (length < 8000 &&
+                            ((dbType.Substring(0, 1) != "n"
+                            && Encoding.UTF8.GetBytes(val.ToCharArray()).Length > length)
+                             || val.Length > length)
+                             )
+                        {
+                            reslutMsg = $"鏈�澶氬彧鑳姐�恵length}銆戜釜瀛楃銆�";
+                        }
                     }
                 }
             }

--
Gitblit v1.9.3