接口 AggregationMapper<T>


  • public interface AggregationMapper<T>
    通用聚合查询接口,特殊方法
    作者:
    liuchan
    • 方法详细资料

      • selectAggregationByExample

        @SelectProvider(type=AggregationProvider.class,
                        method="dynamicSQL")
        List<T> selectAggregationByExample​(@Param("example")
                                           Object example,
                                           @Param("aggregateCondition")
                                           AggregateCondition aggregateCondition)
        根据example和aggregateCondition进行聚合查询 分组不支持having条件过滤, 如需要建议使用xml文件
        参数:
        example -
        aggregateCondition - 可以设置聚合查询的属性和分组属性
        返回:
        返回聚合查询属性和分组属性的值