|
|
@@ -668,6 +668,12 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
List<Long> quitGroupNum = indexBaseMonthDataDao.queryApplyForQuitGroupNum(organIds,educationUserId,tenantId);
|
|
|
twoChild.add(new IndexErrInfoDto(IndexErrorType.STUDENT_APPLY_FOR_QUIT_MUSIC_GROUP, IndexErrorType.STUDENT_APPLY_FOR_QUIT_MUSIC_GROUP.getMsg(), quitGroupNum.size(), quitGroupNum));
|
|
|
|
|
|
+ //学员已排课时长未消耗完
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
+ params.put("organId", organIdsStr);
|
|
|
+ params.put("tenantId", tenantId);
|
|
|
+ twoChild.add(new IndexErrInfoDto(IndexErrorType.HAS_FREE_COURSE_TIMES, IndexErrorType.HAS_FREE_COURSE_TIMES.getMsg(), musicGroupDao.countHasFreeCourseTimes(params), null));
|
|
|
+
|
|
|
//乐团学员会员到期首页提醒
|
|
|
// List<StudentRegistration> studentRegistrations = studentRegistrationDao.queryMemberEndAutoQuitMusic(null,educationUserId,organIdsStr);
|
|
|
// IndexErrInfoDto noClassMusicGroupStudentInfo = new IndexErrInfoDto();
|
|
|
@@ -755,13 +761,6 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
int serveErrTeacherNum = studentExtracurricularExercisesSituationDao.countTeacherServeInfo(params);
|
|
|
fourChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_SERVE_ERROR, IndexErrorType.TEACHER_SERVE_ERROR.getMsg(), serveErrTeacherNum, null));
|
|
|
}
|
|
|
-
|
|
|
- //学员已排课时长未消耗完
|
|
|
- Map<String, Object> params = new HashMap<>();
|
|
|
- params.put("organId", organIdsStr);
|
|
|
- params.put("tenantId", tenantId);
|
|
|
- fourChild.add(new IndexErrInfoDto(IndexErrorType.HAS_FREE_COURSE_TIMES, IndexErrorType.HAS_FREE_COURSE_TIMES.getMsg(), musicGroupDao.countHasFreeCourseTimes(params), null));
|
|
|
-
|
|
|
four.setNum(fourChild.stream().mapToInt(IndexErrInfoDto::getNum).sum());
|
|
|
four.setResult(fourChild);
|
|
|
all.add(four);
|
|
|
@@ -1147,7 +1146,15 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
flag2 = true;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ if(!flag2){
|
|
|
+ Map<String, Object> params = new HashMap<String, Object>(2);
|
|
|
+ params.put("organId",organIdsStr);
|
|
|
+ params.put("tenantId",tenantId);
|
|
|
+ Integer hasFreeCourseTimes = musicGroupDao.countHasFreeCourseTimes(params);
|
|
|
+ if(hasFreeCourseTimes != null && hasFreeCourseTimes > 0){
|
|
|
+ flag2 = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
resultMap.put("studentInfo",flag2);
|
|
|
boolean flag3 = false;
|
|
|
|
|
|
@@ -1225,15 +1232,6 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
flag4 = true;
|
|
|
}
|
|
|
}
|
|
|
- if(!flag4){
|
|
|
- Map<String, Object> params = new HashMap<String, Object>(2);
|
|
|
- params.put("organId",organIdsStr);
|
|
|
- params.put("tenantId",tenantId);
|
|
|
- Integer hasFreeCourseTimes = musicGroupDao.countHasFreeCourseTimes(params);
|
|
|
- if(hasFreeCourseTimes != null && hasFreeCourseTimes > 0){
|
|
|
- flag4 = true;
|
|
|
- }
|
|
|
- }
|
|
|
resultMap.put("attendanceServe",flag4);
|
|
|
|
|
|
boolean flag5 = false;
|