mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 17:18: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))
|
||||
.list();
|
||||
}
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
@ -116,15 +115,14 @@ ArticleVo.java
|
||||
public class ArticleVo {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long accountId;
|
||||
|
||||
private String title;
|
||||
|
||||
private String content;
|
||||
|
||||
//评论量最多的内容
|
||||
private Long maxComments;
|
||||
|
||||
//getter setter
|
||||
}
|
||||
```
|
||||
|
||||
@ -148,11 +146,8 @@ ArticleVo.java 及其 **文章分类** 定义:
|
||||
public class ArticleVo {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long accountId;
|
||||
|
||||
private String title;
|
||||
|
||||
private String content;
|
||||
|
||||
//文章和分类的 多对多 关系配置
|
||||
@ -162,6 +157,8 @@ public class ArticleVo {
|
||||
targetField = "id", joinTargetColumn = "category_id"
|
||||
)
|
||||
private List<ArticleCategory> categories;
|
||||
|
||||
//getter setter
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user