mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Optimize SQL format
This commit is contained in:
@@ -277,8 +277,15 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
inValue1 = $"(NULL)";
|
inValue1 = $"(NULL)";
|
||||||
}
|
}
|
||||||
|
if (inArray.Length == 1)
|
||||||
|
{
|
||||||
|
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "=", inValue1.TrimStart('(').TrimEnd(')'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "IN", inValue1);
|
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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user