Update exp to sql

This commit is contained in:
sunkaixuan 2022-10-17 01:44:35 +08:00
parent 0f796ceace
commit cd8f282523

View File

@ -66,13 +66,18 @@ namespace SqlSugar
} }
if (item.Type == typeof(JoinType)) if (item.Type == typeof(JoinType))
{ {
var joinValue = item.ObjToString();
if (joinValue.Contains("("))
{
joinValue = ExpressionTool.DynamicInvoke(item).ObjToString();
}
if (i > 0) if (i > 0)
{ {
base.Context.Result.Append("," + item.ToString()+ ","); base.Context.Result.Append("," + joinValue + ",");
} }
else else
{ {
base.Context.Result.Append(item.ToString() + ","); base.Context.Result.Append(joinValue + ",");
} }
++i; ++i;
} }