Browse Source

Update exp to sql

pull/31/head
sunkaixuan 2 years ago
parent
commit
653b6e7ca8
  1. 1
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubGroupBy.cs

1
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubGroupBy.cs

@ -67,6 +67,7 @@ namespace SqlSugar
} }
result = result.TrimEnd(','); result = result.TrimEnd(',');
var selfParameterName = this.Context.GetTranslationColumnName((argExp as LambdaExpression).Parameters.First().Name) + UtilConstants.Dot; var selfParameterName = this.Context.GetTranslationColumnName((argExp as LambdaExpression).Parameters.First().Name) + UtilConstants.Dot;
if (this.Context.JoinIndex == 0)
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context)); result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context));
return result; return result;
} }

Loading…
Cancel
Save