|
@@ -850,20 +850,11 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
int teacherAttendanceError = 0;
|
|
|
int studentAttendanceError = 0;
|
|
|
int noAttendance = 0;
|
|
|
- //课程时间安排异常
|
|
|
-// int courseTimeError = 0;
|
|
|
if(classGroupIds == null || classGroupIds.size() > 0){
|
|
|
teacherAttendanceError = indexBaseMonthDataDao.getTeacherAttendanceError(organIds,startTime,classGroupIds,tenantId);
|
|
|
studentAttendanceError = indexBaseMonthDataDao.getStudentAttendanceError(organIds,startTime,classGroupIds,tenantId);
|
|
|
noAttendance = indexBaseMonthDataDao.getNoAttendance(organIds,startTime,classGroupIds,tenantId);
|
|
|
-// String courseStartTimeError = sysTenantConfigService.getTenantConfigValue(SysConfigService.COURSE_START_TIME_ERROR, tenantId);
|
|
|
-// String courseEndTimeError = sysTenantConfigService.getTenantConfigValue(SysConfigService.COURSE_END_TIME_ERROR, tenantId);
|
|
|
-// if(StringUtils.isNotEmpty(courseStartTimeError) && StringUtils.isNotEmpty(courseEndTimeError)){
|
|
|
-// courseTimeError = indexBaseMonthDataDao.getCourseTimeError(organIds,classGroupIds,courseStartTimeError,courseEndTimeError,tenantId);
|
|
|
-// }
|
|
|
}
|
|
|
-// fourChild.add(new IndexErrInfoDto(IndexErrorType.COURSE_TIME_ERROR, IndexErrorType.COURSE_TIME_ERROR.getMsg(), courseTimeError, null));
|
|
|
-
|
|
|
fourChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_EXCEPTION_ATTENDANCE, IndexErrorType.TEACHER_EXCEPTION_ATTENDANCE.getMsg(), teacherAttendanceError, null));
|
|
|
fourChild.add(new IndexErrInfoDto(IndexErrorType.STUDENT_EXCEPTION_ATTENDANCE, IndexErrorType.STUDENT_EXCEPTION_ATTENDANCE.getMsg(), studentAttendanceError, null));
|
|
|
|
|
@@ -871,22 +862,22 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
fourChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_NOT_A_CLASS, IndexErrorType.TEACHER_NOT_A_CLASS.getMsg(), noAttendance, null));
|
|
|
|
|
|
//只适用大雅
|
|
|
- if(tenantId == 1){
|
|
|
- //服务指标异常
|
|
|
- Map<String, Object> params = new HashMap<>();
|
|
|
- LocalDate nowDate = LocalDateTime.now(DateUtil.zoneId).toLocalDate();
|
|
|
- LocalDate monDayDate = nowDate.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.MONDAY.getValue()).plusDays(-7);
|
|
|
- LocalDate sunDayDate = nowDate.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.SUNDAY.getValue()).plusDays(-7);
|
|
|
- params.put("organIds", organIds);
|
|
|
- params.put("monday",monDayDate.toString());
|
|
|
- params.put("sunday",sunDayDate.toString());
|
|
|
- params.put("jobNature", JobNatureEnum.FULL_TIME);
|
|
|
- params.put("unDone",1);
|
|
|
- params.put("reminded",0);
|
|
|
- params.put("tenantId",tenantId);
|
|
|
- int serveErrTeacherNum = studentExtracurricularExercisesSituationDao.countTeacherServeInfo(params);
|
|
|
- fourChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_SERVE_ERROR, IndexErrorType.TEACHER_SERVE_ERROR.getMsg(), serveErrTeacherNum, null));
|
|
|
- }
|
|
|
+// if(tenantId == 1){
|
|
|
+// //服务指标异常
|
|
|
+// Map<String, Object> params = new HashMap<>();
|
|
|
+// LocalDate nowDate = LocalDateTime.now(DateUtil.zoneId).toLocalDate();
|
|
|
+// LocalDate monDayDate = nowDate.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.MONDAY.getValue()).plusDays(-7);
|
|
|
+// LocalDate sunDayDate = nowDate.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.SUNDAY.getValue()).plusDays(-7);
|
|
|
+// params.put("organIds", organIds);
|
|
|
+// params.put("monday",monDayDate.toString());
|
|
|
+// params.put("sunday",sunDayDate.toString());
|
|
|
+// params.put("jobNature", JobNatureEnum.FULL_TIME);
|
|
|
+// params.put("unDone",1);
|
|
|
+// params.put("reminded",0);
|
|
|
+// params.put("tenantId",tenantId);
|
|
|
+// int serveErrTeacherNum = studentExtracurricularExercisesSituationDao.countTeacherServeInfo(params);
|
|
|
+// fourChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_SERVE_ERROR, IndexErrorType.TEACHER_SERVE_ERROR.getMsg(), serveErrTeacherNum, null));
|
|
|
+// }
|
|
|
four.setNum(fourChild.stream().mapToInt(IndexErrInfoDto::getNum).sum());
|
|
|
four.setResult(fourChild);
|
|
|
all.add(four);
|
|
@@ -1288,15 +1279,6 @@ 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;
|
|
|
|
|
@@ -1326,19 +1308,6 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
resultMap.put("teacherInfo",flag3);
|
|
|
|
|
|
boolean flag4 = false;
|
|
|
-/* if(!flag4){
|
|
|
- int courseTimeError = 0;
|
|
|
- if(classGroupIds == null || classGroupIds.size() > 0){
|
|
|
- String courseStartTimeError = sysTenantConfigService.getTenantConfigValue(SysConfigService.COURSE_START_TIME_ERROR, tenantId);
|
|
|
- String courseEndTimeError = sysTenantConfigService.getTenantConfigValue(SysConfigService.COURSE_END_TIME_ERROR, tenantId);
|
|
|
- if(StringUtils.isNotEmpty(courseStartTimeError) && StringUtils.isNotEmpty(courseEndTimeError)){
|
|
|
- courseTimeError = indexBaseMonthDataDao.getCourseTimeError(organIds,classGroupIds,courseStartTimeError,courseEndTimeError, tenantId);
|
|
|
- }
|
|
|
- }
|
|
|
- if(courseTimeError > 0){
|
|
|
- flag4 = true;
|
|
|
- }
|
|
|
- }*/
|
|
|
if(!flag4){
|
|
|
int attendanceError = 0;
|
|
|
if(classGroupIds == null || classGroupIds.size() > 0){
|
|
@@ -1367,7 +1336,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
}
|
|
|
}
|
|
|
//服务指标只用于大雅
|
|
|
- if(tenantId == 1 && !flag4){
|
|
|
+ /*if(tenantId == 1 && !flag4){
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
LocalDate nowDate = LocalDateTime.now(DateUtil.zoneId).toLocalDate();
|
|
|
LocalDate monDayDate = nowDate.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.MONDAY.getValue()).plusDays(-7);
|
|
@@ -1382,7 +1351,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
if(serveErrTeacherNum > 0){
|
|
|
flag4 = true;
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
resultMap.put("attendanceServe",flag4);
|
|
|
|
|
|
boolean flag5 = false;
|