Update leftjoinIF

This commit is contained in:
sunkaixuan
2025-09-30 15:50:11 +08:00
parent e30875439a
commit a5fc38d9f2
2 changed files with 9 additions and 2 deletions

View File

@@ -216,8 +216,15 @@ namespace SqlSugar
if (isLeftJoin == false)
{
result.QueryBuilder.JoinQueryInfos.Remove(result.QueryBuilder.JoinQueryInfos.Last());
if (oldAsName?.Any() == false && result.QueryBuilder.AsTables?.Any() == true)
{
//no things
}
else
{
result.QueryBuilder.AsTables = oldAsName;
}
}
return result;
}
public ISugarQueryable<T, T2> InnerJoinIF<T2>(bool isJoin, Expression<Func<T, T2, bool>> joinExpression)

View File

@@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.205</version>
<version>5.1.4.206-preview06</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>