mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 09:38:26 +08:00
docs: add auto mapper docs
This commit is contained in:
parent
512f8d3891
commit
ad150276b3
@ -103,7 +103,7 @@ public class Account {
|
|||||||
private int maxAge;
|
private int maxAge;
|
||||||
|
|
||||||
//平均年龄
|
//平均年龄
|
||||||
private int svgAge;
|
private int avgAge;
|
||||||
|
|
||||||
//getter setter
|
//getter setter
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ QueryChain.of(accountMapper)
|
|||||||
.select(
|
.select(
|
||||||
ACCOUNT.ALL_COLUMNS,
|
ACCOUNT.ALL_COLUMNS,
|
||||||
max(ACCOUNT.AGE).as("maxAge"),
|
max(ACCOUNT.AGE).as("maxAge"),
|
||||||
avg(ACCOUNT.AGE).as("svgAge")
|
avg(ACCOUNT.AGE).as("avgAge")
|
||||||
).where(ACCOUNT.ID.ge(100))
|
).where(ACCOUNT.ID.ge(100))
|
||||||
.list();
|
.list();
|
||||||
```
|
```
|
||||||
@ -126,7 +126,7 @@ QueryChain.of(accountMapper)
|
|||||||
.select(
|
.select(
|
||||||
ACCOUNT.ALL_COLUMNS,
|
ACCOUNT.ALL_COLUMNS,
|
||||||
max(ACCOUNT.AGE).as("max_age"),
|
max(ACCOUNT.AGE).as("max_age"),
|
||||||
avg(ACCOUNT.AGE).as("svg_age")
|
avg(ACCOUNT.AGE).as("avg_age")
|
||||||
).where(ACCOUNT.ID.ge(100))
|
).where(ACCOUNT.ID.ge(100))
|
||||||
.list();
|
.list();
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user