mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 19:56:43 +08:00
Optimize SQL format
This commit is contained in:
parent
7602c93eed
commit
c2145677df
@ -277,7 +277,14 @@ namespace SqlSugar
|
||||
{
|
||||
inValue1 = $"(NULL)";
|
||||
}
|
||||
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "IN", inValue1);
|
||||
if (inArray.Length == 1)
|
||||
{
|
||||
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "=", inValue1.TrimStart('(').TrimEnd(')'));
|
||||
}
|
||||
else
|
||||
{
|
||||
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "IN", inValue1);
|
||||
}
|
||||
}
|
||||
|
||||
private void InBig(StringBuilder builder, ConditionalModel item, string type, string temp, string[] inArray, int pageSize)
|
||||
|
Loading…
Reference in New Issue
Block a user