mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Update exp to sql
This commit is contained in:
parent
05948a5dae
commit
3f80b543c6
@ -277,11 +277,7 @@ namespace SqlSugar
|
|||||||
var oldWhere = this.whereSql;
|
var oldWhere = this.whereSql;
|
||||||
var newWhere = this.whereSql.Replace(sqlBuilder.GetTranslationColumnName(it.DbColumnName),
|
var newWhere = this.whereSql.Replace(sqlBuilder.GetTranslationColumnName(it.DbColumnName),
|
||||||
lastShortName + "." + sqlBuilder.GetTranslationColumnName(it.DbColumnName));
|
lastShortName + "." + sqlBuilder.GetTranslationColumnName(it.DbColumnName));
|
||||||
if (oldWhere != newWhere && oldWhere.TrimStart().StartsWith("( (SELECT "))
|
if (oldWhere != newWhere && !oldWhere.Contains($" {sqlBuilder.GetTranslationColumnName(it.DbColumnName)}"))
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
else if (oldWhere != newWhere && oldWhere.TrimStart().StartsWith("((( (SELECT ")&& !oldWhere.Contains($" {sqlBuilder.GetTranslationColumnName(it.DbColumnName)}"))
|
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user