|
@@ -749,19 +749,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));
|
|
|
|
|
|
- //服务指标异常
|
|
|
- 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);
|
|
|
- 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);
|
|
|
+ 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);
|
|
@@ -1216,7 +1219,8 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
flag4 = true;
|
|
|
}
|
|
|
}
|
|
|
- if(!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);
|