Update table query

This commit is contained in:
sunkaixuan 2024-02-19 14:20:58 +08:00
parent 8722bb6aa6
commit c0b6369dcf

View File

@ -251,10 +251,14 @@ namespace SqlSugar
{ {
inValue2 = inValue2.Replace("'null'", "null"); inValue2 = inValue2.Replace("'null'", "null");
} }
else if (inValue2.Contains("[null]")) if (inValue2.Contains("[null]"))
{ {
inValue2 = inValue2.Replace("[null]", "null"); inValue2 = inValue2.Replace("[null]", "null");
} }
if (inValue2.Contains("[comma]"))
{
inValue2 = inValue2.Replace("[comma]", ",");
}
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "NOT IN", inValue2); builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "NOT IN", inValue2);
parameters.Add(new SugarParameter(parameterName, item.FieldValue)); parameters.Add(new SugarParameter(parameterName, item.FieldValue));
} }
@ -279,11 +283,11 @@ namespace SqlSugar
{ {
inValue1 = inValue1.Replace("'null'", "null"); inValue1 = inValue1.Replace("'null'", "null");
} }
else if (inValue1.Contains("[comma]")) if (inValue1.Contains("[comma]"))
{ {
inValue1 = inValue1.Replace("[comma]", ","); inValue1 = inValue1.Replace("[comma]", ",");
} }
else if (inValue1.Contains("[null]")) if (inValue1.Contains("[null]"))
{ {
inValue1 = inValue1.Replace("[null]", "null"); inValue1 = inValue1.Replace("[null]", "null");
} }