doc: update docs

This commit is contained in:
开源海哥 2023-07-28 14:00:23 +08:00
parent 77eecd7a6b
commit 1f93d2d21b
2 changed files with 7 additions and 2 deletions

View File

@ -63,7 +63,7 @@ export default defineConfig({
{text: '链式操作🔥🔥', link: '/zh/base/chain'},
{text: 'QueryWrapper', link: '/zh/base/querywrapper'},
{text: 'Db + Row', link: '/zh/base/db-row'},
{text: 'Active Record', link: '/zh/base/active-record'},
{text: 'ActiveRecord', link: '/zh/base/active-record'},
{text: 'IService', link: '/zh/base/service'},
{text: 'SpringBoot 配置文件', link: '/zh/base/configuration'},
{text: 'MyBatisFlexCustomizer', link: '/zh/base/mybatis-flex-customizer'},

View File

@ -141,7 +141,7 @@ Account.create()
`Model` 提供了 `joins``@Relation` 两种方式实现多表关联查询,例如:用户与角色的关系:
- 通过 [joins](./relations-query.md#方案-3join-query) 联表方式查询数据:
- 通过 [joins](./relations-query.md#方案-3-join-query) 联表方式查询数据:
```java
User.create()
@ -151,6 +151,9 @@ User.create()
.where(USER.USER_ID.eq(2))
.one();
```
> 更多关于 `left join` 等 join 查询,请请点击 [这里](./relations-query.md#方案-3-join-query);
- 通过 [@Relation](./relations-query.md#方案-1relations-注解) 相关注解查询数据:
@ -159,3 +162,5 @@ User.create()
.where(USER.USER_ID.eq(2))
.oneWithRelations();
```
> 以上是用于查询 `一对多``多对多` 等场景,更多信息请点击 [这里](./relations-query.md#方案-1-relations-注解);