mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Synchronization code
This commit is contained in:
@@ -274,8 +274,17 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//this.whereSql = this.whereSql.Replace(sqlBuilder.GetTranslationColumnName(it.DbColumnName),
|
var oldWhere = this.whereSql;
|
||||||
// lastShortName + "." + sqlBuilder.GetTranslationColumnName(it.DbColumnName));
|
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