mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update table query
This commit is contained in:
@@ -251,10 +251,14 @@ namespace SqlSugar
|
||||
{
|
||||
inValue2 = inValue2.Replace("'null'", "null");
|
||||
}
|
||||
else if (inValue2.Contains("[null]"))
|
||||
if (inValue2.Contains("[null]"))
|
||||
{
|
||||
inValue2 = inValue2.Replace("[null]", "null");
|
||||
}
|
||||
if (inValue2.Contains("[comma]"))
|
||||
{
|
||||
inValue2 = inValue2.Replace("[comma]", ",");
|
||||
}
|
||||
builder.AppendFormat(temp, type, item.FieldName.ToSqlFilter(), "NOT IN", inValue2);
|
||||
parameters.Add(new SugarParameter(parameterName, item.FieldValue));
|
||||
}
|
||||
@@ -279,11 +283,11 @@ namespace SqlSugar
|
||||
{
|
||||
inValue1 = inValue1.Replace("'null'", "null");
|
||||
}
|
||||
else if (inValue1.Contains("[comma]"))
|
||||
if (inValue1.Contains("[comma]"))
|
||||
{
|
||||
inValue1 = inValue1.Replace("[comma]", ",");
|
||||
}
|
||||
else if (inValue1.Contains("[null]"))
|
||||
if (inValue1.Contains("[null]"))
|
||||
{
|
||||
inValue1 = inValue1.Replace("[null]", "null");
|
||||
}
|
||||
|
Reference in New Issue
Block a user