|
|
@ -87,7 +87,11 @@ namespace SqlSugar |
|
|
|
} |
|
|
|
|
|
|
|
var selfParameterName = Context.GetTranslationColumnName((argExp as LambdaExpression).Parameters.First().Name) + UtilConstants.Dot; |
|
|
|
if (this.Context.JoinIndex == 0) |
|
|
|
if (this.Context.JoinIndex == 0&&result.Contains(" FROM ")) |
|
|
|
{ |
|
|
|
this.Context.CurrentShortName= selfParameterName; |
|
|
|
} |
|
|
|
else if (this.Context.JoinIndex == 0) |
|
|
|
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context)); |
|
|
|
if (!string.IsNullOrEmpty(selfParameterName) && this.Context.IsSingle&& this.Context.JoinIndex == 0) |
|
|
|
{ |
|
|
|