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