Class AggregateCondition
java.lang.Object
cn.lm.mybatis.mapper.additional.aggregation.AggregateCondition
- All Implemented Interfaces:
Serializable
聚合查询条件
- Author:
- liuchan, liuzh
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateCondition(String aggregateProperty) 默认查询count计数,不分组AggregateCondition(String aggregateProperty, AggregateType aggregateType) 按指定聚合方法查询,不分组AggregateCondition(String aggregateProperty, AggregateType aggregateType, String[] groupByProperties) AggregateCondition(String aggregateProperty, String[] groupByProperties) 默认查询count计数 -
Method Summary
Modifier and TypeMethodDescriptionaggregateBy(String aggregateProperty) aggregateType(AggregateType aggregateType) static AggregateConditionbuilder()
-
Constructor Details
-
AggregateCondition
public AggregateCondition() -
AggregateCondition
默认查询count计数,不分组- Parameters:
aggregateProperty- 聚合查询属性,不能为空;为保证返回结果key与传入值相同 方法不会去除前后空格
-
AggregateCondition
默认查询count计数- Parameters:
aggregateProperty- 聚合查询属性,不能为空;为保证返回结果key与传入值相同 方法不会去除前后空格groupByProperties- 为保证返回结果key与传入值相同 方法不会去除每一项前后空格
-
AggregateCondition
按指定聚合方法查询,不分组- Parameters:
aggregateProperty-aggregateType-
-
AggregateCondition
public AggregateCondition(String aggregateProperty, AggregateType aggregateType, String[] groupByProperties) - Parameters:
aggregateProperty- 不能为空,为保证返回结果key与传入值相同 方法不会去除前后空格aggregateType-groupByProperties- 为保证返回结果key与传入值相同 方法不会去除每一项前后空格
-
-
Method Details
-
builder
-
groupBy
-
aggregateBy
-
aliasName
-
aggregateType
-
getAggregateProperty
-
getAggregateAliasName
-
getGroupByProperties
-
getAggregateType
-