mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
!1 add:QueryWrapper中innerJoin方法使用TableDef参数的重载
Merge pull request !1 from 凌尘/main
This commit is contained in:
commit
e86db3f92f
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user