mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
update docs
This commit is contained in:
parent
1321cc2c83
commit
36afd8c29f
@ -11,6 +11,7 @@ export default defineConfig({
|
||||
// logo: '/assets/images/logo02.png',
|
||||
|
||||
themeConfig: {
|
||||
outlineTitle:'章节',
|
||||
search: {
|
||||
provider: 'local'
|
||||
},
|
||||
|
||||
@ -1,16 +1,19 @@
|
||||
<!--.vitepress/theme/MyLayout.vue-->
|
||||
<script setup>
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
|
||||
const {Layout} = DefaultTheme
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Layout>
|
||||
<!-- <template #doc-footer-before>-->
|
||||
<!-- <div class="tip custom-block" style="margin-bottom: 24px">-->
|
||||
<!-- <p class="custom-block-title">广告</p>-->
|
||||
<!-- <p>此次广告位招租。</p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </template>-->
|
||||
<!--docs: https://vitepress.dev/guide/extending-default-theme#layout-slots-->
|
||||
<template #doc-footer-before>
|
||||
<div class="info custom-block" style="margin-bottom: 14px">
|
||||
<!-- <p class="custom-block-title">对这篇文章还有疑问?</p>-->
|
||||
<p>对这篇文章还有疑问? 点击 <a href="https://gitee.com/mybatis-flex/mybatis-flex/issues/new" target="_blank">这里</a> 发起提问。
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
</Layout>
|
||||
</template>
|
||||
@ -90,7 +90,7 @@ MyBatis-Flex 的关联子查询,和 JPA 等其他第三方框架有很大的
|
||||
|
||||
对 MyBatis-Flex 来说,学习成本是非常低的,在构建子查询时,只需要明白为哪个字段、通过什么样的 SQL 查询就可以了,以下是示例:
|
||||
|
||||
```java
|
||||
```java 3,4
|
||||
List<Article> articles = mapper.selectListByQuery(query
|
||||
, fieldQueryBuilder -> fieldQueryBuilder
|
||||
.field(...) // 为哪个字段查询的?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user