Optimized code

This commit is contained in:
sunkaixuan
2024-02-21 18:26:03 +08:00
parent 4439b001fe
commit 177dacd039

View File

@@ -299,8 +299,8 @@ namespace SqlSugar
{
inValue1 = $"(NULL)";
}
if (inArray.Length == 1)
{
if (inArray.Length == 1&& inValue1 != "(null)")
{
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "=", inValue1.TrimStart('(').TrimEnd(')'));
}
else