Interface AggregationMapper<T>


public interface AggregationMapper<T>
通用聚合查询接口,特殊方法
Author:
liuchan
  • Method Summary

    Modifier and Type
    Method
    Description
    根据example和aggregateCondition进行聚合查询 分组不支持having条件过滤, 如需要建议使用xml文件
  • Method Details

    • selectAggregationByExample

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