docs: add auto mapper docs

This commit is contained in:
开源海哥 2023-07-29 17:46:08 +08:00
parent 512f8d3891
commit ad150276b3

View File

@ -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();
```