接口 AggregationMapper<T>
-
public interface AggregationMapper<T>通用聚合查询接口,特殊方法- 作者:
- liuchan
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 List<T>selectAggregationByExample(Object example, AggregateCondition aggregateCondition)根据example和aggregateCondition进行聚合查询 分组不支持having条件过滤, 如需要建议使用xml文件
-
-
-
方法详细资料
-
selectAggregationByExample
@SelectProvider(type=AggregationProvider.class, method="dynamicSQL") List<T> selectAggregationByExample(@Param("example") Object example, @Param("aggregateCondition") AggregateCondition aggregateCondition)
根据example和aggregateCondition进行聚合查询 分组不支持having条件过滤, 如需要建议使用xml文件- 参数:
example-aggregateCondition- 可以设置聚合查询的属性和分组属性- 返回:
- 返回聚合查询属性和分组属性的值
-
-