Class AggregateCondition

java.lang.Object
cn.lm.mybatis.mapper.additional.aggregation.AggregateCondition
All Implemented Interfaces:
Serializable

public class AggregateCondition extends Object implements Serializable
聚合查询条件
Author:
liuchan, liuzh
See Also:
  • Constructor Details

    • AggregateCondition

      public AggregateCondition()
    • AggregateCondition

      public AggregateCondition(String aggregateProperty)
      默认查询count计数,不分组
      Parameters:
      aggregateProperty - 聚合查询属性,不能为空;为保证返回结果key与传入值相同 方法不会去除前后空格
    • AggregateCondition

      public AggregateCondition(String aggregateProperty, String[] groupByProperties)
      默认查询count计数
      Parameters:
      aggregateProperty - 聚合查询属性,不能为空;为保证返回结果key与传入值相同 方法不会去除前后空格
      groupByProperties - 为保证返回结果key与传入值相同 方法不会去除每一项前后空格
    • AggregateCondition

      public AggregateCondition(String aggregateProperty, AggregateType aggregateType)
      按指定聚合方法查询,不分组
      Parameters:
      aggregateProperty -
      aggregateType -
    • AggregateCondition

      public AggregateCondition(String aggregateProperty, AggregateType aggregateType, String[] groupByProperties)
      Parameters:
      aggregateProperty - 不能为空,为保证返回结果key与传入值相同 方法不会去除前后空格
      aggregateType -
      groupByProperties - 为保证返回结果key与传入值相同 方法不会去除每一项前后空格
  • Method Details