|
@@ -532,7 +532,15 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
twoChild.add(new IndexErrInfoDto(IndexErrorType.STUDENT_APPLY_FOR_QUIT_MUSIC_GROUP, IndexErrorType.STUDENT_APPLY_FOR_QUIT_MUSIC_GROUP.getMsg(), quitGroupNum.size(), quitGroupNum));
|
|
|
|
|
|
//乐团学员会员到期首页提醒
|
|
|
-// List<StudentRegistration> studentRegistrations = studentRegistrationDao.queryMemberEndAutoQuitMusic("1",null);
|
|
|
+ List<StudentRegistration> studentRegistrations = studentRegistrationDao.queryMemberEndAutoQuitMusic("1",null);
|
|
|
+ IndexErrInfoDto noClassMusicGroupStudentInfo = new IndexErrInfoDto();
|
|
|
+ Set<String> musicGroupIds = studentRegistrations.stream().map(e -> e.getMusicGroupId()).collect(Collectors.toSet());
|
|
|
+ Set<Integer> userIds = studentRegistrations.stream().map(e -> e.getUserId()).collect(Collectors.toSet());
|
|
|
+ noClassMusicGroupStudentInfo.setErrorType(IndexErrorType.NO_MEMBER_STUDENT_INFO);
|
|
|
+ noClassMusicGroupStudentInfo.setNum(musicGroupIds.size());
|
|
|
+ noClassMusicGroupStudentInfo.setNum2(userIds.size());
|
|
|
+ noClassMusicGroupStudentInfo.setDesc(IndexErrorType.NO_MEMBER_STUDENT_INFO.getMsg());
|
|
|
+ twoChild.add(noClassMusicGroupStudentInfo);
|
|
|
|
|
|
// int attendanceInfo = indexBaseMonthDataDao.queryStudentAttendanceInfo(organIds, StudentAttendanceStatusEnum.TRUANT.getCode(),startTime);
|
|
|
// twoChild.add(new IndexErrInfoDto(IndexErrorType.COURSE_TRUANT_STUDENT_NUM, IndexErrorType.COURSE_TRUANT_STUDENT_NUM.getMsg(), attendanceInfo, null));
|
|
@@ -898,12 +906,19 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
result.add(new IndexErrInfoDto(IndexErrorType.TEACHER_EXPECT_SALARY_BE_LOW, IndexErrorType.TEACHER_EXPECT_SALARY_BE_LOW.getMsg(),lowTeacherSalary, null));
|
|
|
|
|
|
//乐团学员会员即将到期首页提醒
|
|
|
-// String configValue = sysConfigDao.findConfigValue(SysConfigService.PUSH_MEMBER_RENEW_QUIT);
|
|
|
-// if(StringUtils.isEmpty(configValue)){
|
|
|
-// configValue = "5";
|
|
|
-// }
|
|
|
-// List<StudentRegistration> studentRegistrations = studentRegistrationDao.queryMemberEndAutoQuitMusic(configValue,0);
|
|
|
-
|
|
|
+ String configValue = sysConfigDao.findConfigValue(SysConfigService.PUSH_MEMBER_RENEW_QUIT);
|
|
|
+ if(StringUtils.isEmpty(configValue)){
|
|
|
+ configValue = "15";
|
|
|
+ }
|
|
|
+ List<StudentRegistration> studentRegistrations = studentRegistrationDao.queryMemberEndAutoQuitMusic(configValue,0);
|
|
|
+ Set<String> musicGroupIdList = studentRegistrations.stream().map(e -> e.getMusicGroupId()).collect(Collectors.toSet());
|
|
|
+ Set<Integer> userIds = studentRegistrations.stream().map(e -> e.getUserId()).collect(Collectors.toSet());
|
|
|
+ IndexErrInfoDto infoDto = new IndexErrInfoDto();
|
|
|
+ infoDto.setErrorType(IndexErrorType.MEMBER_STUDENT_INFO);
|
|
|
+ infoDto.setNum(musicGroupIdList.size());
|
|
|
+ infoDto.setNum2(userIds.size());
|
|
|
+ infoDto.setDesc(IndexErrorType.MEMBER_STUDENT_INFO.getMsg());
|
|
|
+ result.add(infoDto);
|
|
|
return result;
|
|
|
}
|
|
|
|