Commit 5116dbb5 authored by 韩桐桐's avatar 韩桐桐

fix(统计):作业人员统计bug

parent 47d6cdda
......@@ -565,7 +565,7 @@ public class ZLDPStatisticsServiceImpl {
List<Map<String, String>> list = screenMapper.userCountNew(screenDto, unitTypeList);
Map<String, Integer> dataMap = new HashMap<>();
for (Map<String, String> map : list) {
JSONArray jsonArray = JSONArray.parseArray(map.get("post"));
JSONArray jsonArray = JSONArray.parseArray(map.get("new_post"));
for(int j = 0; j < jsonArray.size(); j++){
dataMap.put(jsonArray.getString(j), dataMap.getOrDefault(jsonArray.getString(j), 0) + 1);
}
......
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