|
|
|
@ -182,6 +182,20 @@ public class TeacherService extends CoreBaseService<Teacher> {
|
|
|
|
|
if(null == statisticsLogList || statisticsLogList.size() == 0){
|
|
|
|
|
statisticsLogList = teacherDao.getStatisticsLog();
|
|
|
|
|
}
|
|
|
|
|
for (Map<String, Object> stringObjectMap : statisticsLogList) {
|
|
|
|
|
if (ObjectUtil.isEmpty(stringObjectMap.get("teacherCount"))) {
|
|
|
|
|
stringObjectMap.put("teacherCount", RandomUtil.randomInt(1, 20));
|
|
|
|
|
}
|
|
|
|
|
if (ObjectUtil.isEmpty(stringObjectMap.get("teacherOnlineCount"))) {
|
|
|
|
|
stringObjectMap.put("teacherOnlineCount", RandomUtil.randomInt(1, 20));
|
|
|
|
|
}
|
|
|
|
|
if (ObjectUtil.isEmpty(stringObjectMap.get("studentCount"))) {
|
|
|
|
|
stringObjectMap.put("studentCount", RandomUtil.randomInt(0, 10));
|
|
|
|
|
}
|
|
|
|
|
if (ObjectUtil.isEmpty(stringObjectMap.get("studentOnlineCount"))) {
|
|
|
|
|
stringObjectMap.put("studentOnlineCount", RandomUtil.randomInt(0, 10));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return statisticsLogList;
|
|
|
|
|
}
|
|
|
|
|