|
@@ -184,39 +184,39 @@ public class IndexController extends BaseController {
|
|
|
List<EduLinks> linksList = eduLinksService.findPage(page, eduLinks).getList();
|
|
|
model.addAttribute("linksList", linksList);
|
|
|
|
|
|
- //注册人数统计
|
|
|
- String sql = "select * from ( " +
|
|
|
- "select count(*) as sums ,'宁江区' as area from sys_user where office_id like '1001%' union all " +
|
|
|
- "select count(*) as sums ,'前郭县' as area from sys_user where office_id like '1003%' union all " +
|
|
|
- "select count(*) as sums ,'乾安县' as area from sys_user where office_id like '1005%' union all " +
|
|
|
- "select count(*) as sums ,'扶余市' as area from sys_user where office_id like '1002%' union all " +
|
|
|
- "select count(*) as sums ,'长岭县' as area from sys_user where office_id like '1004%' ) t " +
|
|
|
- "order by t.sums desc ";
|
|
|
-
|
|
|
- List<Map<String, Object>> countList = userMapper.execSelectSql(sql);
|
|
|
- model.addAttribute("registerCount", countList);
|
|
|
-
|
|
|
- //学习时长排行
|
|
|
- sql = "select IFNULL(sums,0) as sums,area from (" +
|
|
|
- " select sum(floor(record/60)) as sums,'宁江区' as area from edu_study_record where office_id like '1001%' " +
|
|
|
- " union all select sum(floor(record/60)) as sums,'前郭县' as area from edu_study_record where office_id like '1003%' " +
|
|
|
- " union all select sum(floor(record/60)) as sums,'乾安县' as area from edu_study_record where office_id like '1005%' " +
|
|
|
- " union all select sum(floor(record/60)) as sums,'扶余市' as area from edu_study_record where office_id like '1002%' " +
|
|
|
- " union all select sum(floor(record/60)) as sums,'长岭县' as area from edu_study_record where office_id like '1004%' " +
|
|
|
- ") t order by t.sums desc";
|
|
|
- List<Map<String, Object>> timeList = userMapper.execSelectSql(sql);
|
|
|
- model.addAttribute("timeCount", timeList);
|
|
|
-
|
|
|
- //学习分数排行
|
|
|
- sql = "select IFNULL(sums,0) as sums,area from ( " +
|
|
|
- " select sum(score) as sums,'宁江区' as area from edu_study_record where office_id like '1001%' " +
|
|
|
- " union all select sum(score) as sums,'前郭县' as area from edu_study_record where office_id like '1003%' " +
|
|
|
- " union all select sum(score) as sums,'乾安县' as area from edu_study_record where office_id like '1005%' " +
|
|
|
- " union all select sum(score) as sums,'扶余市' as area from edu_study_record where office_id like '1002%' " +
|
|
|
- " union all select sum(score) as sums,'长岭县' as area from edu_study_record where office_id like '1004%' " +
|
|
|
- ") t order by t.sums desc ";
|
|
|
- List<Map<String, Object>> scoreList = userMapper.execSelectSql(sql);
|
|
|
- model.addAttribute("scoreCount", scoreList);
|
|
|
+// //注册人数统计
|
|
|
+// String sql = "select * from ( " +
|
|
|
+// "select count(*) as sums ,'宁江区' as area from sys_user where office_id like '1001%' union all " +
|
|
|
+// "select count(*) as sums ,'前郭县' as area from sys_user where office_id like '1003%' union all " +
|
|
|
+// "select count(*) as sums ,'乾安县' as area from sys_user where office_id like '1005%' union all " +
|
|
|
+// "select count(*) as sums ,'扶余市' as area from sys_user where office_id like '1002%' union all " +
|
|
|
+// "select count(*) as sums ,'长岭县' as area from sys_user where office_id like '1004%' ) t " +
|
|
|
+// "order by t.sums desc ";
|
|
|
+//
|
|
|
+// List<Map<String, Object>> countList = userMapper.execSelectSql(sql);
|
|
|
+// model.addAttribute("registerCount", countList);
|
|
|
+//
|
|
|
+// //学习时长排行
|
|
|
+// sql = "select IFNULL(sums,0) as sums,area from (" +
|
|
|
+// " select sum(floor(record/60)) as sums,'宁江区' as area from edu_study_record where office_id like '1001%' " +
|
|
|
+// " union all select sum(floor(record/60)) as sums,'前郭县' as area from edu_study_record where office_id like '1003%' " +
|
|
|
+// " union all select sum(floor(record/60)) as sums,'乾安县' as area from edu_study_record where office_id like '1005%' " +
|
|
|
+// " union all select sum(floor(record/60)) as sums,'扶余市' as area from edu_study_record where office_id like '1002%' " +
|
|
|
+// " union all select sum(floor(record/60)) as sums,'长岭县' as area from edu_study_record where office_id like '1004%' " +
|
|
|
+// ") t order by t.sums desc";
|
|
|
+// List<Map<String, Object>> timeList = userMapper.execSelectSql(sql);
|
|
|
+// model.addAttribute("timeCount", timeList);
|
|
|
+//
|
|
|
+// //学习分数排行
|
|
|
+// sql = "select IFNULL(sums,0) as sums,area from ( " +
|
|
|
+// " select sum(score) as sums,'宁江区' as area from edu_study_record where office_id like '1001%' " +
|
|
|
+// " union all select sum(score) as sums,'前郭县' as area from edu_study_record where office_id like '1003%' " +
|
|
|
+// " union all select sum(score) as sums,'乾安县' as area from edu_study_record where office_id like '1005%' " +
|
|
|
+// " union all select sum(score) as sums,'扶余市' as area from edu_study_record where office_id like '1002%' " +
|
|
|
+// " union all select sum(score) as sums,'长岭县' as area from edu_study_record where office_id like '1004%' " +
|
|
|
+// ") t order by t.sums desc ";
|
|
|
+// List<Map<String, Object>> scoreList = userMapper.execSelectSql(sql);
|
|
|
+// model.addAttribute("scoreCount", scoreList);
|
|
|
|
|
|
//右下角图片链接
|
|
|
eduLinks.setTypes("2");
|