Update UitlMethod

This commit is contained in:
sunkaixuan
2024-12-27 13:23:13 +08:00
parent 31d553d93f
commit 17aa5831fc
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugarCore</id> <id>SqlSugarCore</id>
<version>5.1.4.172</version> <version>5.1.4.173-preview01</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners> <owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

View File

@@ -1579,7 +1579,7 @@ namespace SqlSugar
var result = sqlObj.Key; var result = sqlObj.Key;
if (sqlObj.Value != null) if (sqlObj.Value != null)
{ {
foreach (var item in sqlObj.Value.OrderByDescending(it => it.ParameterName.Length)) foreach (var item in UtilMethods.CopySugarParameters(sqlObj.Value).OrderByDescending(it => it.ParameterName.Length))
{ {
if (item.ParameterName.StartsWith(":")&&!result.Contains(item.ParameterName)) if (item.ParameterName.StartsWith(":")&&!result.Contains(item.ParameterName))
{ {