public interface AggregationMapper<T>
Modifier and Type | Method and Description |
---|---|
List<T> |
selectAggregationByExample(Object example,
AggregateCondition aggregateCondition)
根据example和aggregateCondition进行聚合查询
分组不支持having条件过滤, 如需要建议使用xml文件
|
@SelectProvider(type=AggregationProvider.class, method="dynamicSQL") List<T> selectAggregationByExample(@Param(value="example") Object example, @Param(value="aggregateCondition") AggregateCondition aggregateCondition)
example
- aggregateCondition
- 可以设置聚合查询的属性和分组属性Copyright © 2018. All rights reserved.