From 319c4fe3fb3656ba33903d8c9364ae3d548dd038 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 06 三月 2025 09:33:29 +0800
Subject: [PATCH] 2

---
 Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/Utilities/EntityProperties.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/Utilities/EntityProperties.cs b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/Utilities/EntityProperties.cs
index dec0451..11ea985 100644
--- a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/Utilities/EntityProperties.cs
+++ b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/Utilities/EntityProperties.cs
@@ -152,7 +152,7 @@
             if (dic == null || dic.Count == 0) { return "鍙傛暟鏃犳晥"; }
 
             // 涓嶅瓨鍦ㄧ殑瀛楁鐩存帴绉婚櫎
-            dic.Where(x => !propertyInfo.Any(p => p.Name == x.Key.FirstLetterToUpper())).Select(s => s.Key).ToList().ForEach(f =>
+            dic.Where(x => !propertyInfo.Any(p => p.Name.ToUpper() == x.Key.ToUpper())).Select(s => s.Key).ToList().ForEach(f =>
             {
                 dic.Remove(f);
             });
@@ -173,11 +173,11 @@
                 if (sugarColumn == null)
                     return "璇烽厤缃甋ugarColumn灞炴��";
                 //蹇界暐涓庝富閿殑瀛楁涓嶅仛楠岃瘉
-                if (property.Name == keyName.FirstLetterToUpper() || (ignoreFields != null && ignoreFields.Contains(property.Name)) || sugarColumn.IsOnlyIgnoreInsert || sugarColumn.IsOnlyIgnoreUpdate || sugarColumn.IsIgnore)
+                if (property.Name.ToUpper() == keyName.ToUpper() || (ignoreFields != null && ignoreFields.Contains(property.Name)) || sugarColumn.IsOnlyIgnoreInsert || sugarColumn.IsOnlyIgnoreUpdate || sugarColumn.IsIgnore)
                     continue;
 
                 //涓嶅湪缂栬緫涓殑鍒楋紝鏄惁涔熻蹇呭~
-                if (!dic.ContainsKey(property.Name.FirstLetterToLower()))
+                if (!dic.ContainsKey(property.Name.ToUpper()))
                 {
                     if (!sugarColumn.IsNullable)
                     {
@@ -187,12 +187,12 @@
                     }
                     continue;
                 }
-                if(dic[property.Name.FirstLetterToLower()] != null)
+                if(dic[property.Name.ToUpper()] != null)
                 {
-                    string str = dic[property.Name.FirstLetterToLower()].ToString();
+                    string str = dic[property.Name.ToUpper()].ToString();
                     //灏嗘墍鏈夌┖鍊艰缃负null
                     if (str == string.Empty)
-                        dic[property.Name.FirstLetterToLower()] = null;
+                        dic[property.Name.ToUpper()] = null;
                 }
                 
             }

--
Gitblit v1.9.3