Update exp to sql

This commit is contained in:
sunkaixuan
2023-11-04 17:32:40 +08:00
parent 2b4a118a7a
commit 684a4975bf

View File

@@ -274,8 +274,17 @@ namespace SqlSugar
}
else
{
//this.whereSql = this.whereSql.Replace(sqlBuilder.GetTranslationColumnName(it.DbColumnName),
// lastShortName + "." + sqlBuilder.GetTranslationColumnName(it.DbColumnName));
var oldWhere = this.whereSql;
var newWhere = this.whereSql.Replace(sqlBuilder.GetTranslationColumnName(it.DbColumnName),
lastShortName + "." + sqlBuilder.GetTranslationColumnName(it.DbColumnName));
if (oldWhere != newWhere && oldWhere.TrimStart().StartsWith("( (SELECT "))
{
}
else
{
this.whereSql = newWhere;
}
}
}
});