上一个版本恢复不需要添加对应的方法了,直接更改通用查询方法

This commit is contained in:
guofeihu
2024-09-03 14:05:11 +08:00
parent d298f2b9fd
commit 067f49cda7
3 changed files with 4 additions and 12 deletions

View File

@@ -30,14 +30,4 @@ public class DataHarmPowerPServiceImpl implements DataHarmPowerPService {
return result1;
}
@Override
public List<DataHarmPowerP> getNewHarmonicPowerP(String lineIndex, String startTime, String endTime, String phaseType, String valueType) {
InfluxQueryWrapper influxQueryWrapper = new InfluxQueryWrapper(DataHarmPowerP.class);
influxQueryWrapper.between(DataHarmPowerP::getTime, startTime, endTime);
if(lineIndex != null) influxQueryWrapper.eq(DataHarmPowerP::getLineId, lineIndex);
if(phaseType != null) influxQueryWrapper.eq(DataHarmPowerP::getPhaseType, phaseType);
if(valueType != null) influxQueryWrapper.eq(DataHarmPowerP::getValueType, valueType);
List<DataHarmPowerP> result1 = dataHarmPowerPMapper.getStatisticsByWraper(influxQueryWrapper);
return result1;
}
}