Commit 1faaf4405f78a87a146d5ff196938ea0939a66df

Authored by baohanddd
1 parent 003a724311

add statistics(map) common index

Showing 1 changed file with 3 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java View file @ 1faaf44
... ... @@ -148,6 +148,7 @@
148 148 // 高危数据
149 149 List<AreaData> currentRiskList = statisticsService.queryRisks(new AreaDataQuery());
150 150 Option groupRiskOption = buildBarOption("当前高危人数", null);
  151 + groupRiskOption.getTooltip().setShow(true);
151 152 List<Object> groupRiskSeriesList = new ArrayList<>();
152 153 Series groupRiskSeries = new Series();
153 154 groupRiskSeries.setName("高危人数");
154 155  
... ... @@ -170,9 +171,9 @@
170 171 Collections.sort(listData, new Comparator<Map.Entry<String, Integer>>() {
171 172 public int compare(Map.Entry<String, Integer> o1, Map.Entry<String, Integer> o2) {
172 173 if (o2.getValue() != null && o1.getValue() != null && o2.getValue().compareTo(o1.getValue()) > 0) {
173   - return 1;
174   - } else {
175 174 return -1;
  175 + } else {
  176 + return 1;
176 177 }
177 178  
178 179 }