!1 add:QueryWrapper中innerJoin方法使用TableDef参数的重载

Merge pull request !1 from 凌尘/main
This commit is contained in:
开源海哥 2023-03-06 12:29:30 +00:00 committed by Gitee
commit e86db3f92f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -181,6 +181,14 @@ public class QueryWrapper extends BaseQueryWrapper<QueryWrapper> {
return joining(Join.TYPE_INNER, table, condition);
}
public Joiner<QueryWrapper> innerJoin(TableDef table) {
return innerJoinIf(table, true);
}
public Joiner<QueryWrapper> innerJoinIf(TableDef table, boolean condition) {
return joining(Join.TYPE_INNER, table.getTableName(), condition);
}
public Joiner<QueryWrapper> innerJoin(QueryWrapper table) {
return joining(Join.TYPE_INNER, table, true);
}