添加方法
This commit is contained in:
@@ -808,6 +808,21 @@ public class InfluxQueryWrapper {
|
||||
selectColumns.add(selectFragment);
|
||||
return this;
|
||||
}
|
||||
public <T, R> InfluxQueryWrapper percentile(String columnName, int percent) {
|
||||
String selectFragment = InfluxDbSqlConstant.PERCENTILE +
|
||||
InfluxDbSqlConstant.LBK +
|
||||
InfluxDbSqlConstant.DQM +
|
||||
columnName +
|
||||
InfluxDbSqlConstant.DQM +
|
||||
StrPool.COMMA +
|
||||
percent +
|
||||
InfluxDbSqlConstant.RBK +
|
||||
InfluxDbSqlConstant.AS +
|
||||
columnName +
|
||||
StrPool.C_SPACE;
|
||||
selectColumns.add(selectFragment);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**************************自定义查询条件,比如between、>、<、=、>=、<=等等**************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user