mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 12:47:57 +08:00
Optimize SQL format
This commit is contained in:
parent
7602c93eed
commit
c2145677df
@ -277,7 +277,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
inValue1 = $"(NULL)";
|
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)
|
private void InBig(StringBuilder builder, ConditionalModel item, string type, string temp, string[] inArray, int pageSize)
|
||||||
|
Loading…
Reference in New Issue
Block a user