mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +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 svgAge;
|
||||
private int avgAge;
|
||||
|
||||
//getter setter
|
||||
}
|
||||
@ -115,7 +115,7 @@ QueryChain.of(accountMapper)
|
||||
.select(
|
||||
ACCOUNT.ALL_COLUMNS,
|
||||
max(ACCOUNT.AGE).as("maxAge"),
|
||||
avg(ACCOUNT.AGE).as("svgAge")
|
||||
avg(ACCOUNT.AGE).as("avgAge")
|
||||
).where(ACCOUNT.ID.ge(100))
|
||||
.list();
|
||||
```
|
||||
@ -126,7 +126,7 @@ QueryChain.of(accountMapper)
|
||||
.select(
|
||||
ACCOUNT.ALL_COLUMNS,
|
||||
max(ACCOUNT.AGE).as("max_age"),
|
||||
avg(ACCOUNT.AGE).as("svg_age")
|
||||
avg(ACCOUNT.AGE).as("avg_age")
|
||||
).where(ACCOUNT.ID.ge(100))
|
||||
.list();
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user