| 程序包 | 说明 |
|---|---|
| tk.mybatis.mapper.additional.aggregation |
| 限定符和类型 | 方法和说明 |
|---|---|
AggregateCondition |
AggregateCondition.aggregateBy(String aggregateProperty) |
AggregateCondition |
AggregateCondition.aggregateType(AggregateType aggregateType) |
AggregateCondition |
AggregateCondition.aliasName(String aggregateAliasName) |
static AggregateCondition |
AggregateCondition.builder() |
AggregateCondition |
AggregateCondition.groupBy(String... groupByProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
AggregationProvider.aggregationGroupBy(Class<?> entityClass,
String wrapKeyword,
AggregateCondition condition) |
static String |
AggregationProvider.aggregationSelectClause(Class<?> entityClass,
String wrapKeyword,
AggregateCondition condition) |
List<T> |
AggregationMapper.selectAggregationByExample(Object example,
AggregateCondition aggregateCondition)
根据example和aggregateCondition进行聚合查询
分组不支持having条件过滤, 如需要建议使用xml文件
|
Copyright © 2018. All Rights Reserved.