谐波监测:畸变率异常bug

This commit is contained in:
wr
2023-04-24 15:28:07 +08:00
parent 04bd5d47c4
commit 28a5c8e73e
2 changed files with 156 additions and 159 deletions

View File

@@ -74,7 +74,7 @@ public class DistortionRateServiceImpl implements DistortionRateService {
private List<DataVPO> getDistortionRateInfluxDb(String lineId, String date) {
String processParam = " and line_id = '" + lineId + "' and time >= '" + date + " 00:00:00' and time <= '" + date + " 23:59:59' tz('Asia/Shanghai')";
QueryResult result = influxDbUtils.query ("SELECT line_id, max(v_thd) as v_thd FROM data_v WHERE phasic_type != 'T' and value_type = 'MAX'" + processParam);
QueryResult result = influxDbUtils.query ("SELECT line_id, max(v_thd) as v_thd FROM data_v WHERE phasic_type != 'T' and value_type = 'CP95'" + processParam);
InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( );
return resultMapper.toPOJO (result, DataVPO.class);
}