Commit c450d94b959f7decbdfe47564f1ce019b9c9121f

Authored by baohanddd
1 parent 60c2f7ceea

add statistics(map) common index

Showing 1 changed file with 3 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java View file @ c450d94
... ... @@ -181,11 +181,11 @@
181 181 });
182 182  
183 183 List<Object> groupRiskDataList = new ArrayList<>();
184   - int n = 0;
  184 + int n = listData.size();
185 185 for (Map.Entry<String, Integer> entry:listData) {
186   - n++;
  186 + n--;
187 187 if (n>20) {
188   - break;
  188 + continue;
189 189 }
190 190 groupRiskOption.getyAxis().getData().add(entry.getKey());
191 191 if (riskColorMap.containsKey(entry.getKey())) {