Commit 6bd7a4e0 authored by 喻春霖's avatar 喻春霖

add other user type count

parent b0bcdf3d
...@@ -286,6 +286,11 @@ public class LogStatisticsController { ...@@ -286,6 +286,11 @@ public class LogStatisticsController {
if (null != month){ if (null != month){
param.put("yearMonth", month); param.put("yearMonth", month);
} }
long all_auth = authLogService.count(param);
param.put("logUserInfo.userType","TEACHER"); param.put("logUserInfo.userType","TEACHER");
long teacherCount = authLogService.count(param); long teacherCount = authLogService.count(param);
param.put("logUserInfo.userType","STUDENT"); param.put("logUserInfo.userType","STUDENT");
...@@ -299,8 +304,14 @@ public class LogStatisticsController { ...@@ -299,8 +304,14 @@ public class LogStatisticsController {
StatItem item2 = new StatItem(); StatItem item2 = new StatItem();
item2.setName("学生"); item2.setName("学生");
item2.setCount(studentCount); item2.setCount(studentCount);
StatItem other = new StatItem();
other.setName("其他");
other.setCount(all_auth - teacherCount - studentCount);
result.add(item1); result.add(item1);
result.add(item2); result.add(item2);
result.add(other);
return MapMessage.successMessage().add("data", result); 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