Commit 0b46f579 authored by caotao's avatar caotao

光伏集电线返回逆变器状态

parent 1a5a48fb
...@@ -1720,6 +1720,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -1720,6 +1720,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
public void getListByNbq(String gatewayId, String werks, String stationId) { public void getListByNbq(String gatewayId, String werks, String stationId) {
HashMap<String,String> equipStatesMap = getPvNBQStationBy(gatewayId);
String sql = " SELECT * FROM indicators_" + gatewayId + " WHERE equipmentIndexName ='总直流功率' and frontModule = '逆变器'"; String sql = " SELECT * FROM indicators_" + gatewayId + " WHERE equipmentIndexName ='总直流功率' and frontModule = '逆变器'";
String sql1 = " SELECT * FROM indicators_" + gatewayId + " WHERE equipmentIndexName ='有功功率' and frontModule = '逆变器'"; String sql1 = " SELECT * FROM indicators_" + gatewayId + " WHERE equipmentIndexName ='有功功率' and frontModule = '逆变器'";
List<IndicatorsDto> listData = influxDButils.getListData(sql, IndicatorsDto.class); List<IndicatorsDto> listData = influxDButils.getListData(sql, IndicatorsDto.class);
...@@ -1745,6 +1746,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -1745,6 +1746,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
map.put("titie" + number, equipNum); map.put("titie" + number, equipNum);
map.put("value" + number,String.format("%.2f",Double.parseDouble(indicatorsDto.getValue())) ); map.put("value" + number,String.format("%.2f",Double.parseDouble(indicatorsDto.getValue())) );
map.put("valueLabel" + number, String.format("%.2f",Double.parseDouble(indicatorsDto.getValueLabel())) ); map.put("valueLabel" + number, String.format("%.2f",Double.parseDouble(indicatorsDto.getValueLabel())) );
map.put("state" + number,equipStatesMap.get(indicatorsDto.getEquipmentNumber()));
maps.add(map); maps.add(map);
} }
List<Map<String, Object>> dataMaps = sjglZsjZsbtzServiceImpl.sjglZsjZsbtzMapper.getStationInfoMapByStationGFWerks(werks,"集电线"); List<Map<String, Object>> dataMaps = sjglZsjZsbtzServiceImpl.sjglZsjZsbtzMapper.getStationInfoMapByStationGFWerks(werks,"集电线");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment