mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
feat(inner join): inner join两个表支持别名
This commit is contained in:
parent
3d68c143d9
commit
54f890f0de
@ -252,6 +252,13 @@ public interface QueryJoin<Children, Entity> extends MPJBaseJoin<Entity>, String
|
||||
return join(Constant.INNER_JOIN, clazz, alias, left, right, ext);
|
||||
}
|
||||
|
||||
/**
|
||||
* innerjoin两个表支持别名 参考 left join
|
||||
*/
|
||||
default <T, X> Children innerJoin(Class<T> clazz, String alias, SFunction<T, ?> left, String rightAlias, SFunction<X, ?> right) {
|
||||
return join(Constant.INNER_JOIN, clazz, alias, left, rightAlias, right);
|
||||
}
|
||||
|
||||
/**
|
||||
* ignore 参考 left join
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user