Class AggregateCondition
java.lang.Object
org.miaixz.bus.mapper.additional.aggregation.AggregateCondition
-
Constructor Summary
ConstructorsConstructorDescription构造AggregateCondition(String aggregateProperty) 默认查询count计数,不分组AggregateCondition(String aggregateProperty, String[] groupByProperties) 默认查询count计数AggregateCondition(String aggregateProperty, AggregateType aggregateType) 按指定聚合方法查询,不分组AggregateCondition(String aggregateProperty, AggregateType aggregateType, String[] groupByProperties) 查询 -
Method Summary
Modifier and TypeMethodDescriptionaggregateBy(String aggregateProperty) 查询条件aggregateType(AggregateType aggregateType) aggregateTypestatic AggregateConditionbuilder()构造查询条件
-
Constructor Details
-
AggregateCondition
public AggregateCondition()构造 -
AggregateCondition
默认查询count计数,不分组- Parameters:
aggregateProperty- 聚合查询属性,不能为空;为保证返回结果key与传入值相同 方法不会去除前后空格
-
AggregateCondition
-
AggregateCondition
按指定聚合方法查询,不分组- Parameters:
aggregateProperty- 不能为空,为保证返回结果key与传入值相同 方法不会去除前后空格aggregateType- 聚合函数
-
AggregateCondition
public AggregateCondition(String aggregateProperty, AggregateType aggregateType, String[] groupByProperties) 查询- Parameters:
aggregateProperty- 不能为空,为保证返回结果key与传入值相同 方法不会去除前后空格aggregateType- 聚合函数groupByProperties- 为保证返回结果key与传入值相同 方法不会去除每一项前后空格
-
-
Method Details
-
builder
-
groupBy
查询条件- Parameters:
groupByProperties- 属性- Returns:
- the object
-
aggregateBy
查询条件- Parameters:
aggregateProperty- 属性- Returns:
- the object
-
aliasName
-
aggregateType
aggregateType- Parameters:
aggregateType- aggregateType- Returns:
- the object
-
getAggregateProperty
-
getAggregateAliasName
-
getGroupByProperties
-
getAggregateType
-