diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/NewExpressionResolve.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/NewExpressionResolve.cs index c1fbbc8c6..c5a3977cb 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/NewExpressionResolve.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/NewExpressionResolve.cs @@ -66,13 +66,18 @@ namespace SqlSugar } if (item.Type == typeof(JoinType)) { + var joinValue = item.ObjToString(); + if (joinValue.Contains("(")) + { + joinValue = ExpressionTool.DynamicInvoke(item).ObjToString(); + } if (i > 0) { - base.Context.Result.Append("," + item.ToString()+ ","); + base.Context.Result.Append("," + joinValue + ","); } else { - base.Context.Result.Append(item.ToString() + ","); + base.Context.Result.Append(joinValue + ","); } ++i; }