新增一些公共查询方法

This commit is contained in:
guofeihu
2024-09-13 18:42:57 +08:00
parent ad5833f48a
commit 60afcb97cf
12 changed files with 138 additions and 3 deletions

View File

@@ -61,6 +61,14 @@ public class DataVServiceImpl implements IDataVService {
return result1;
}
@Override
public List<DataV> getNewDataV(String lineIndex, String startTime, String endTime) {
InfluxQueryWrapper influxQueryWrapper = new InfluxQueryWrapper(DataV.class);
influxQueryWrapper.eq(DataV::getLineId, lineIndex)
.between(DataV::getTime, startTime, endTime);;
return dataVMapper.getStatisticsByWraper(influxQueryWrapper);
}
/***
* 自定义需要查询的谐波次数