Browse Source

Update exp to sql

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

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

@ -67,7 +67,8 @@ 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;
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context)); if (this.Context.JoinIndex == 0)
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context));
return result; return result;
} }
} }

Loading…
Cancel
Save