Synchronization code

This commit is contained in:
sunkaixuan 2023-12-21 00:31:35 +08:00
parent 1e4160f695
commit 4ba3ad6f4f

View File

@ -277,11 +277,7 @@ namespace SqlSugar
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 if (oldWhere != newWhere && oldWhere.TrimStart().StartsWith("((( (SELECT ")&& !oldWhere.Contains($" {sqlBuilder.GetTranslationColumnName(it.DbColumnName)}"))
if (oldWhere != newWhere && !oldWhere.Contains($" {sqlBuilder.GetTranslationColumnName(it.DbColumnName)}"))
{
}