Update exp to sql

This commit is contained in:
sunkaixuan
2023-03-24 17:46:22 +08:00
parent 873f63161b
commit 653b6e7ca8

View File

@@ -67,7 +67,8 @@ namespace SqlSugar
}
result = result.TrimEnd(',');
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;
}
}