mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
docs: update docs
This commit is contained in:
parent
971c668362
commit
047a1d71e6
@ -21,7 +21,6 @@ class ArticleServiceTest {
|
|||||||
.where(ARTICLE.ID.ge(100))
|
.where(ARTICLE.ID.ge(100))
|
||||||
.list();
|
.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -116,15 +115,14 @@ ArticleVo.java
|
|||||||
public class ArticleVo {
|
public class ArticleVo {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private Long accountId;
|
private Long accountId;
|
||||||
|
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
//评论量最多的内容
|
//评论量最多的内容
|
||||||
private Long maxComments;
|
private Long maxComments;
|
||||||
|
|
||||||
|
//getter setter
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -148,11 +146,8 @@ ArticleVo.java 及其 **文章分类** 定义:
|
|||||||
public class ArticleVo {
|
public class ArticleVo {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private Long accountId;
|
private Long accountId;
|
||||||
|
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
//文章和分类的 多对多 关系配置
|
//文章和分类的 多对多 关系配置
|
||||||
@ -162,6 +157,8 @@ public class ArticleVo {
|
|||||||
targetField = "id", joinTargetColumn = "category_id"
|
targetField = "id", joinTargetColumn = "category_id"
|
||||||
)
|
)
|
||||||
private List<ArticleCategory> categories;
|
private List<ArticleCategory> categories;
|
||||||
|
|
||||||
|
//getter setter
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user