|
@@ -545,18 +545,17 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
//获取新增人数占比(已上乐团课小于等于4)
|
|
|
//获取有在读学员的乐团编号
|
|
|
//获取有在读学员的学员编号
|
|
|
- List<String> musicGroupIds = studentRegistrationDao.findMusicGroupIds();
|
|
|
List<Integer> studentIdList = studentRegistrationDao.findStudentIds();
|
|
|
- List<BaseMapDto<Integer, Long>> studentMusicCourseNum = studentDao.getOrganCloudNewStudentNum(musicGroupIds,studentIdList);
|
|
|
- //获取有乐团没排课的数据
|
|
|
- List<Integer> noCourseStudentIdList = studentRegistrationDao.findNoCourseStudentIds();
|
|
|
- List<Integer> userIdList = new ArrayList<>();
|
|
|
- if(!CollectionUtils.isEmpty(studentMusicCourseNum)){
|
|
|
- List<BaseMapDto<Integer, Long>> collect = studentMusicCourseNum.stream().filter(e -> e.getValue() < 5).collect(Collectors.toList());
|
|
|
- userIdList = collect.stream().map(e -> e.getKey()).collect(Collectors.toList());
|
|
|
- }
|
|
|
- userIdList.addAll(noCourseStudentIdList);
|
|
|
- saveData(studentDao.groupOrganId(null,userIdList),LocalDate.now().toString(),IndexDataType.CLOUD_NEW_STUDENT_NUM);
|
|
|
+// List<BaseMapDto<Integer, Long>> studentMusicCourseNum = studentDao.getOrganCloudNewStudentNum(musicGroupIds,studentIdList);
|
|
|
+// //获取有乐团没排课的数据
|
|
|
+// List<Integer> noCourseStudentIdList = studentRegistrationDao.findNoCourseStudentIds();
|
|
|
+// List<Integer> userIdList = new ArrayList<>();
|
|
|
+// if(!CollectionUtils.isEmpty(studentMusicCourseNum)){
|
|
|
+// List<BaseMapDto<Integer, Long>> collect = studentMusicCourseNum.stream().filter(e -> e.getValue() < 5).collect(Collectors.toList());
|
|
|
+// userIdList = collect.stream().map(e -> e.getKey()).collect(Collectors.toList());
|
|
|
+// }
|
|
|
+// userIdList.addAll(noCourseStudentIdList);
|
|
|
+ saveData(studentDao.groupOrganId(null,studentIdList),LocalDate.now().toString(),IndexDataType.CLOUD_NEW_STUDENT_NUM);
|
|
|
}
|
|
|
|
|
|
}
|