From 1b6ccb64675e5262a2f7135697edc7466ffc14bf Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期二, 04 三月 2025 17:20:05 +0800
Subject: [PATCH] 优化

---
 Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/Utilities/EntityProperties.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 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 91dacd8..11ea985 100644
--- a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/Utilities/EntityProperties.cs
+++ b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/Utilities/EntityProperties.cs
@@ -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