mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Code optimization
This commit is contained in:
@@ -637,7 +637,14 @@ namespace SqlSugar
|
||||
{
|
||||
if (item != null)
|
||||
{
|
||||
values.Add(item.ToString().ToSqlValue());
|
||||
if (UtilMethods.IsNumber(item.GetType().Name))
|
||||
{
|
||||
values.Add(item.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
values.Add(item.ToString().ToSqlValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.Where(string.Format(QueryBuilder.InTemplate, filed, string.Join(",", values)));
|
||||
|
||||
Reference in New Issue
Block a user