Synchronization code

This commit is contained in:
sunkaixuan 2023-05-17 11:44:45 +08:00
parent 51cabc9544
commit 173f230da2
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ namespace SqlSugar
{
this.Context.CurrentShortName = selfParameterName;
}
else if (this.Context.JoinIndex == 0)
else if (this.Context.JoinIndex == 0 && this.Context.CurrentShortName != selfParameterName.TrimEnd('.'))
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context));
return result;
}

View File

@ -91,7 +91,7 @@ namespace SqlSugar
{
this.Context.CurrentShortName= selfParameterName.ObjToString().TrimEnd('.');
}
else if (this.Context.JoinIndex == 0)
else if (this.Context.JoinIndex == 0&& this.Context.CurrentShortName!= selfParameterName.TrimEnd('.'))
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context));
if (!string.IsNullOrEmpty(selfParameterName) && this.Context.IsSingle&& this.Context.JoinIndex == 0)
{