新增方法
This commit is contained in:
@@ -973,6 +973,25 @@ public class InfluxQueryWrapper {
|
||||
return this;
|
||||
}
|
||||
|
||||
/***
|
||||
* 批量返回包含谐波次数的数据。
|
||||
* @author xuyang
|
||||
* @param prefix 表字段名
|
||||
* @param suffix 映射名称
|
||||
* @return InfluxQueryWrapper
|
||||
* 输出 prefix+diffContent+suffix as prefix+diffContent+suffix
|
||||
*/
|
||||
public InfluxQueryWrapper samePrefixAndSuffix(String prefix, String suffix, List<Object> diffContent) {
|
||||
if (CollectionUtil.isEmpty(diffContent)) {
|
||||
throw new RuntimeException("查询数值集合为空,请校验!");
|
||||
}
|
||||
for (Object obj : diffContent) {
|
||||
String fieldName = prefix + obj + suffix;
|
||||
this.select(fieldName,fieldName);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**************************自定义查询条件,比如between、>、<、=、>=、<=等等**************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user