diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/querywrapper/QueryWrapper.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/querywrapper/QueryWrapper.java index a5acd847..b22e3a84 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/querywrapper/QueryWrapper.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/querywrapper/QueryWrapper.java @@ -181,6 +181,14 @@ public class QueryWrapper extends BaseQueryWrapper { return joining(Join.TYPE_INNER, table, condition); } + public Joiner innerJoin(TableDef table) { + return innerJoinIf(table, true); + } + + public Joiner innerJoinIf(TableDef table, boolean condition) { + return joining(Join.TYPE_INNER, table.getTableName(), condition); + } + public Joiner innerJoin(QueryWrapper table) { return joining(Join.TYPE_INNER, table, true); }