Commit b42b049b authored by zhangsen's avatar zhangsen

API bug

parent 34ee9c65
...@@ -885,7 +885,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -885,7 +885,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
List<Map<String, Object>> statusMaps = new ArrayList<>(); List<Map<String, Object>> statusMaps = new ArrayList<>();
for (IndicatorsDto listDatum : listData) { for (IndicatorsDto listDatum : listData) {
Map<String, Object> statusMap = new HashMap<>(); Map<String, Object> statusMap = new HashMap<>();
statusMap.put("title", listDatum.getValue().equals("") ? 0.00 : keepTwoDecimalPlaces(listDatum.getValue()) + " " + listDatum.getUnit() == null ? "" : listDatum.getUnit()); statusMap.put("title", listDatum.getValue().equals("") ? 0.00 : keepTwoDecimalPlaces(listDatum.getValue()) + " " + listDatum.getUnit() == null ? "" : keepTwoDecimalPlaces(listDatum.getValue()) + " " + listDatum.getUnit());
statusMap.put("title1", listDatum.getDisplayName()); statusMap.put("title1", listDatum.getDisplayName());
statusMaps.add(statusMap); statusMaps.add(statusMap);
} }
......
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