添加平均值求法
This commit is contained in:
@@ -284,6 +284,19 @@ public class InfluxQueryWrapper {
|
|||||||
selectColumns.add(selectFragment);
|
selectColumns.add(selectFragment);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
public InfluxQueryWrapper mean(String columnName,String resultName) {
|
||||||
|
String selectFragment = InfluxDbSqlConstant.AVG +
|
||||||
|
InfluxDbSqlConstant.LBK +
|
||||||
|
InfluxDbSqlConstant.DQM +
|
||||||
|
columnName +
|
||||||
|
InfluxDbSqlConstant.DQM +
|
||||||
|
InfluxDbSqlConstant.RBK +
|
||||||
|
InfluxDbSqlConstant.AS +
|
||||||
|
resultName +
|
||||||
|
StrPool.C_SPACE;
|
||||||
|
selectColumns.add(selectFragment);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* 批量获取指定字段平均值
|
* 批量获取指定字段平均值
|
||||||
|
|||||||
Reference in New Issue
Block a user