|
@@ -811,6 +811,10 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
Map<Integer, Integer> teacherNotAClassMap = new HashMap<>();
|
|
|
//服务指标异常
|
|
|
Map<Integer, Integer> teacherServeErrorMap = new HashMap<>();
|
|
|
+ //学员请假异常
|
|
|
+ Map<Integer, Integer> studentErrorLeaveMap = new HashMap<>();
|
|
|
+ //会员过期学员数
|
|
|
+ Map<Integer, Integer> noMemberStudentMap = new HashMap<>();
|
|
|
|
|
|
if(IndexErrorType.MUSIC_PATROL.equals(errorType)||Objects.isNull(errorType)){
|
|
|
//基础技能班学员数量异常
|
|
@@ -827,6 +831,10 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
}
|
|
|
|
|
|
if(IndexErrorType.STUDENT_INFO.equals(errorType)||Objects.isNull(errorType)){
|
|
|
+ //学员异常请假数
|
|
|
+ List<Map<Integer, Integer>> studentErrorLeaveMapList = indexBaseMonthDataDao.countOrganStudentErrorLeave(organIds, classGroupIds);
|
|
|
+ studentErrorLeaveMap = MapUtil.mapListToMap(studentErrorLeaveMapList, Integer.class, Integer.class);
|
|
|
+
|
|
|
//未缴费学员数
|
|
|
List<Map<Integer, Integer>> studentNotPaymentMapList = indexBaseMonthDataDao.countOrganNoPaymentStudentNum(organIds, educationUserId);
|
|
|
studentNotPaymentMap = MapUtil.mapListToMap(studentNotPaymentMapList, Integer.class, Integer.class);
|
|
@@ -834,6 +842,10 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
//申请退团学员数
|
|
|
List<Map<Integer, Integer>> studentApplyForQuitMusicGroupMapList = indexBaseMonthDataDao.queryOrganApplyForQuitGroupNum(organIds, educationUserId);
|
|
|
studentApplyForQuitMusicGroupMap = MapUtil.mapListToMap(studentApplyForQuitMusicGroupMapList, Integer.class, Integer.class);
|
|
|
+
|
|
|
+ //会员过期学员数
|
|
|
+ List<Map<Integer, Integer>> memberEndAutoQuitMusicMapList = studentRegistrationDao.queryOrganMemberEndAutoQuitMusic(null, educationUserId,organIds);
|
|
|
+ noMemberStudentMap = MapUtil.mapListToMap(memberEndAutoQuitMusicMapList, Integer.class, Integer.class);
|
|
|
}
|
|
|
|
|
|
if(IndexErrorType.TEACHER_INFO.equals(errorType)||Objects.isNull(errorType)){
|
|
@@ -921,6 +933,12 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
}
|
|
|
total += indexErrorData.getNoClassMusicGroupStudentInfo();
|
|
|
totalData.setNoClassMusicGroupStudentInfo(totalData.getNoClassMusicGroupStudentInfo() + indexErrorData.getNoClassMusicGroupStudentInfo());
|
|
|
+ //学员请假异常数
|
|
|
+ if(studentErrorLeaveMap.containsKey(organ.getId())){
|
|
|
+ indexErrorData.setStudentErrorLeave(studentErrorLeaveMap.get(organ.getId()));
|
|
|
+ }
|
|
|
+ total += indexErrorData.getStudentErrorLeave();
|
|
|
+ totalData.setStudentErrorLeave(totalData.getStudentErrorLeave() + indexErrorData.getStudentErrorLeave());
|
|
|
//未缴费学员数
|
|
|
if(studentNotPaymentMap.containsKey(organ.getId())){
|
|
|
indexErrorData.setStudentNotPayment(studentNotPaymentMap.get(organ.getId()));
|
|
@@ -933,6 +951,12 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
}
|
|
|
total += indexErrorData.getStudentApplyForQuitMusicGroup();
|
|
|
totalData.setStudentApplyForQuitMusicGroup(totalData.getStudentApplyForQuitMusicGroup() + indexErrorData.getStudentApplyForQuitMusicGroup());
|
|
|
+ //会员已过期数量
|
|
|
+ if(noMemberStudentMap.containsKey(organ.getId())){
|
|
|
+ indexErrorData.setNoMemberStudentNum(noMemberStudentMap.get(organ.getId()));
|
|
|
+ }
|
|
|
+ total += indexErrorData.getNoMemberStudentNum();
|
|
|
+ totalData.setNoMemberStudentNum(totalData.getNoMemberStudentNum() + indexErrorData.getNoMemberStudentNum());
|
|
|
//预计课酬较低
|
|
|
if(teacherExpectSalaryBeLowMap.containsKey(organ.getId())){
|
|
|
indexErrorData.setTeacherExpectSalaryBeLow(teacherExpectSalaryBeLowMap.get(organ.getId()));
|