Interface AggregationMapper<T>
- Type Parameters:
T- 泛型
public interface AggregationMapper<T>
通用聚合查询接口,特殊方法
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionselectAggregationByCondition(Object condition, AggregateCondition aggregateCondition) 根据condition和aggregateCondition进行聚合查询 分组不支持having条件过滤, 如需要建议使用xml文件
-
Method Details
-
selectAggregationByCondition
@SelectProvider(type=AggregationProvider.class, method="dynamicSQL") List<T> selectAggregationByCondition(@Param("condition") Object condition, @Param("aggregateCondition") AggregateCondition aggregateCondition) 根据condition和aggregateCondition进行聚合查询 分组不支持having条件过滤, 如需要建议使用xml文件- Parameters:
condition- 条件aggregateCondition- 可以设置聚合查询的属性和分组属性- Returns:
- 返回聚合查询属性和分组属性的值
-