mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Code optimization
This commit is contained in:
parent
14691e2979
commit
8c5e6da11f
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user