新增一些公共查询方法

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

@@ -37,4 +37,12 @@ public class IDataIServiceImpl implements IDataIService {
result1 = dataIMapper.getStatisticsByWraper(influxQueryWrapper);
return result1;
}
@Override
public List<DataI> getNewDataI(String lineIndex, String startTime, String endTime) {
InfluxQueryWrapper influxQueryWrapper = new InfluxQueryWrapper(DataI.class);
influxQueryWrapper.eq(DataI::getLineId, lineIndex)
.between(DataI::getTime, startTime, endTime);;
return dataIMapper.getStatisticsByWraper(influxQueryWrapper);
}
}