Commit d9df85c5 authored by chenzhao's avatar chenzhao

修改代码

parent b6aede8c
......@@ -679,14 +679,14 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
public List<Map<String,Object>> getAnalogQuantity (String gatewayId,String frontModule){
String sql = " SELECT displayName , value as state FROM indicators_"+gatewayId+" WHERE frontModule =~/"+frontModule+"/ and systemType = '模拟量'";
String sql = " SELECT * FROM indicators_"+gatewayId+" WHERE frontModule =~/"+frontModule+"/ and systemType = '模拟量'";
List<IndicatorsDto> listData = influxDButils.getListData(sql, IndicatorsDto.class);
List<Map<String,Object>> statusMaps = new ArrayList<>();
for (IndicatorsDto listDatum : listData) {
Map<String, Object> statusMap = new HashMap<>();
statusMap.put("title1",listDatum.getValue()+" "+listDatum.getUnit());
statusMap.put("title",listDatum.getDisplayName());
statusMap.put("title",listDatum.getValue()+" "+listDatum.getUnit());
statusMap.put("title1",listDatum.getDisplayName());
statusMaps.add(statusMap);
}
return statusMaps;
......
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