From 0df3cb7492523f7a1ce37d0a1c7e4a79eb4bf0ce Mon Sep 17 00:00:00 2001
From: WINDOWS-F96JH03\Kain <MrTianDeLe@163.com>
Date: 星期二, 17 三月 2026 12:33:52 +0800
Subject: [PATCH] 1

---
 项目代码/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs"
index 11ea985..6bf4c55 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs"
@@ -173,11 +173,11 @@
                 if (sugarColumn == null)
                     return "璇烽厤缃甋ugarColumn灞炴��";
                 //蹇界暐涓庝富閿殑瀛楁涓嶅仛楠岃瘉
-                if (property.Name.ToUpper() == keyName.ToUpper() || (ignoreFields != null && ignoreFields.Contains(property.Name)) || sugarColumn.IsOnlyIgnoreInsert || sugarColumn.IsOnlyIgnoreUpdate || sugarColumn.IsIgnore)
+                if (property.Name == keyName.FirstLetterToLower() || (ignoreFields != null && ignoreFields.Contains(property.Name)) || sugarColumn.IsOnlyIgnoreInsert || sugarColumn.IsOnlyIgnoreUpdate || sugarColumn.IsIgnore)
                     continue;
 
                 //涓嶅湪缂栬緫涓殑鍒楋紝鏄惁涔熻蹇呭~
-                if (!dic.ContainsKey(property.Name.ToUpper()))
+                if (!dic.ContainsKey(property.Name.FirstLetterToLower()))
                 {
                     if (!sugarColumn.IsNullable)
                     {
@@ -187,12 +187,12 @@
                     }
                     continue;
                 }
-                if(dic[property.Name.ToUpper()] != null)
+                if(dic[property.Name.FirstLetterToLower()] != null)
                 {
-                    string str = dic[property.Name.ToUpper()].ToString();
+                    string str = dic[property.Name.FirstLetterToLower()].ToString();
                     //灏嗘墍鏈夌┖鍊艰缃负null
                     if (str == string.Empty)
-                        dic[property.Name.ToUpper()] = null;
+                        dic[property.Name.FirstLetterToLower()] = null;
                 }
                 
             }

--
Gitblit v1.9.3