|
@ -243,6 +243,7 @@ public class StatisticsService {
|
|
|
totalMap.put("turnDownNum",turnDownNumTotal);
|
|
|
totalMap.put("replyRate",getRange(replyNumTotal, inviteNumTotal));
|
|
|
totalMap.put("list",new ArrayList<>());
|
|
|
totalMap.put("hasChildren",false);
|
|
|
|
|
|
List<Map<String,Object>> result = new ArrayList<>();
|
|
|
result.add(totalMap);
|
|
@ -281,6 +282,10 @@ public class StatisticsService {
|
|
|
deptTmp.put("replyRate",getRange(replyNumDept, inviteNumDept));
|
|
|
value.sort(Comparator.comparingInt(a->Integer.parseInt(a.get("replyNum")+"")));
|
|
|
deptTmp.put("list",value);
|
|
|
deptTmp.put("hasChildren",false);
|
|
|
if(value.size()>0){
|
|
|
deptTmp.put("hasChildren",true);
|
|
|
}
|
|
|
result.add(deptTmp);
|
|
|
}
|
|
|
List<Map<String,Object>> other = new ArrayList<>();
|
|
@ -329,6 +334,10 @@ public class StatisticsService {
|
|
|
otherMap.put("replyRate",getRange(replyNumOther, inviteNumOther));
|
|
|
other.sort(Comparator.comparingInt(a->Integer.parseInt(a.get("replyNum")+"")));
|
|
|
otherMap.put("list",other);
|
|
|
otherMap.put("hasChildren",false);
|
|
|
if(other.size()>0){
|
|
|
otherMap.put("hasChildren",true);
|
|
|
}
|
|
|
result.add(otherMap);
|
|
|
}
|
|
|
|