mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
doc: 官网示例有误,修复 https://gitee.com/mybatis-flex/mybatis-flex/issues/I7PKLM
This commit is contained in:
parent
946df44045
commit
4c896a46b1
@ -119,6 +119,7 @@ QueryChain.of(accountMapper)
|
||||
max(ACCOUNT.AGE).as("maxAge"),
|
||||
avg(ACCOUNT.AGE).as("avgAge")
|
||||
).where(ACCOUNT.ID.ge(100))
|
||||
.groupBy(ACCOUNT.AGE)
|
||||
.list();
|
||||
```
|
||||
或者:
|
||||
@ -130,6 +131,7 @@ QueryChain.of(accountMapper)
|
||||
max(ACCOUNT.AGE).as("max_age"),
|
||||
avg(ACCOUNT.AGE).as("avg_age")
|
||||
).where(ACCOUNT.ID.ge(100))
|
||||
.groupBy(ACCOUNT.AGE)
|
||||
.list();
|
||||
```
|
||||
|
||||
@ -142,6 +144,7 @@ QueryChain.of(accountMapper)
|
||||
max(ACCOUNT.AGE).as(Account::getMaxAge),
|
||||
avg(ACCOUNT.AGE).as(Account::getAvgAge)
|
||||
).where(ACCOUNT.ID.ge(100))
|
||||
.groupBy(Account::getAge)
|
||||
.list();
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user