Commit 4eff6eac authored by 麻笑宇's avatar 麻笑宇

22397 bug修改

parent 5bed04ae
...@@ -567,7 +567,7 @@ public class ZLDPStatisticsServiceImpl { ...@@ -567,7 +567,7 @@ public class ZLDPStatisticsServiceImpl {
for (Map<String, String> map : list) { for (Map<String, String> map : list) {
JSONArray jsonArray = JSONArray.parseArray(map.get("post")); JSONArray jsonArray = JSONArray.parseArray(map.get("post"));
for(int j = 0; j < jsonArray.size(); j++){ for(int j = 0; j < jsonArray.size(); j++){
dataMap.put(jsonArray.getString(j), dataMap.getOrDefault(jsonArray.getString(j), 1) + 1); dataMap.put(jsonArray.getString(j), dataMap.getOrDefault(jsonArray.getString(j), 0) + 1);
} }
} }
Map<String, Object> returnMap = new HashMap<>(); Map<String, Object> returnMap = new HashMap<>();
......
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