mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Synchronization code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user