|
|
@ -208,6 +208,17 @@ namespace SqlSugar |
|
|
|
parameters.Add(new SugarParameter(parameterName, item.FieldValue)); |
|
|
|
} |
|
|
|
break; |
|
|
|
case ConditionalType.EqualNull: |
|
|
|
if (GetFieldValue(item) == null) |
|
|
|
{ |
|
|
|
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), " IS ", " NULL "); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "=", parameterName); |
|
|
|
parameters.Add(new SugarParameter(parameterName, GetFieldValue(item))); |
|
|
|
} |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|