Commit 3f54b5c3 authored by 喻春霖's avatar 喻春霖

fixed

parent af96a222
......@@ -179,19 +179,32 @@ public class LogStatisticsController {
long cas_edu_auth = authLogService.count(param);
result.put("cas_edu_auth", cas_edu_auth);
List<StatItem> browserResult = new ArrayList<>();
for (String area : areas) {
StatItem item = new StatItem();
item.setName(area);
if (area.equals("青浦区")){
param.put("oauthType","qpjy");
long qpjy = authLogService.count(param);
item.setCount(qpjy);
}
browserResult.add(item);
}
browserResult.sort(Comparator.comparing(StatItem::getCount).reversed());
result.put("area_auth", browserResult);
param.put("oauthType","qpjy");
long qp_auth = authLogService.count(param);
result.put("qp_auth", qp_auth);
param.put("oauthType","edenoperation");
long operator_auth = authLogService.count(param);
result.put("operator_auth", operator_auth);
param.remove("oauthType");
List<String> loginUsers = authLogService.distinct("logUserInfo.userId", param);
result.put("num_of_people", loginUsers.size());
//qp_auth,operator_auth,num_of_people
// List<StatItem> browserResult = new ArrayList<>();
// for (String area : areas) {
// StatItem item = new StatItem();
// item.setName(area);
// if (area.equals("青浦区")){
// param.put("oauthType","qpjy");
// long qpjy = authLogService.count(param);
// item.setCount(qpjy);
// }
// browserResult.add(item);
// }
// browserResult.sort(Comparator.comparing(StatItem::getCount).reversed());
// result.put("area_auth", browserResult);
return MapMessage.successMessage().add("data", result);
}
......
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