mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
!481 update docs/zh/base/active-record.md.
Merge pull request !481 from 乘黄猿码/N/A
This commit is contained in:
commit
1757d9fb98
@ -159,8 +159,8 @@ Account.create()
|
|||||||
```java
|
```java
|
||||||
User.create()
|
User.create()
|
||||||
.select(USER.ALL_COLUMNS,ROLE.ALL_COLUMNS)
|
.select(USER.ALL_COLUMNS,ROLE.ALL_COLUMNS)
|
||||||
.leftJoin(USER_ROLE).as("ur").on(USER_ROLE.USER_ID.eq(USER.USER_ID))
|
.leftJoin(USER_ROLE.as("ur")).on(USER_ROLE.USER_ID.eq(USER.USER_ID))
|
||||||
.leftJoin(ROLE).as("r").on(USER_ROLE.ROLE_ID.eq(ROLE.ROLE_ID))
|
.leftJoin(ROLE.as("r")).on(USER_ROLE.ROLE_ID.eq(ROLE.ROLE_ID))
|
||||||
.where(USER.USER_ID.eq(1))
|
.where(USER.USER_ID.eq(1))
|
||||||
.one();
|
.one();
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user