@@ -64,36 +64,29 @@ public class StationDataTaskImpl implements IStationDataTask {
...
@@ -64,36 +64,29 @@ public class StationDataTaskImpl implements IStationDataTask {
@Override
@Override
publicvoidgetIndexDto(DeviceDtodeviceDto){
publicvoidgetIndexDto(DeviceDtodeviceDto){
//每个分机的指标数据
//每个分机的指标数据
List<IndexDto>list=null;
List<IndexDto>list=null;
QueryResultquery=influxDbConnection.query("SELECT * FROM iot_data where \"equipmentSpecificName\" =~/.*"+deviceDto.getNumberName()+".*/ and \"gatewayId\" =~/"+deviceDto.getGateway()+"/ group by \"equipmentsIdx\" limit 1");
QueryResultquery=influxDbConnection.query("SELECT * FROM iot_data where \"equipmentSpecificName\" =~/.*"+deviceDto.getNumberName()+".*/ and \"gatewayId\" =~/"+deviceDto.getGateway()+"/ group by \"equipmentsIdx\" limit 1");