|
@@ -57,6 +57,8 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
private StudentExtracurricularExercisesSituationDao studentExtracurricularExercisesSituationDao;
|
|
|
@Autowired
|
|
|
private StudentExtracurricularExercisesSituationService studentExtracurricularExercisesSituationService;
|
|
|
+ @Autowired
|
|
|
+ private ClassGroupDao classGroupDao;
|
|
|
|
|
|
private static ThreadLocal<Set<Integer>> organIds = new ThreadLocal<Set<Integer>>(){
|
|
|
@Override
|
|
@@ -292,6 +294,14 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
Date date = new Date();
|
|
|
|
|
|
List<IndexErrInfoDto> all = new ArrayList<>();
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ List<Integer> userRole = employeeDao.queryUserRole(sysUser.getId());
|
|
|
+ //如果当前用户只有教务老师角色,那么只能看到他所管理的课程组的信息
|
|
|
+ List<Integer> classGroupIds = null;
|
|
|
+ if (userRole.size() == 1 && userRole.contains(SysUserRole.EDUCATIONAL_TEACHER)) {
|
|
|
+ //获取教务老师关联的班级列表
|
|
|
+ classGroupIds = classGroupDao.queryGroupClassGroupIds(sysUser.getId());
|
|
|
+ }
|
|
|
|
|
|
if(IndexErrorType.MUSIC_PATROL.equals(errorType)){
|
|
|
IndexErrInfoDto<IndexErrInfoDto> one = new IndexErrInfoDto<>();
|
|
@@ -345,8 +355,6 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
int lowTeacherSalary = indexBaseMonthDataDao.queryLowTeacherSalary(organIdsStr,monthStr);
|
|
|
threeChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_EXPECT_SALARY_BE_LOW, IndexErrorType.TEACHER_EXPECT_SALARY_BE_LOW.getMsg(),lowTeacherSalary, null));
|
|
|
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- List<Integer> userRole = employeeDao.queryUserRole(sysUser.getId());
|
|
|
Integer userId = null;
|
|
|
if (!userRole.contains(SysUserRole.SECTION_MANAGER) && !sysUser.getIsSuperAdmin()) {
|
|
|
userId = sysUser.getId();
|
|
@@ -371,7 +379,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
four.setDesc(IndexErrorType.ATTENDANCE_SERVE.getMsg());
|
|
|
List<IndexErrInfoDto> fourChild = new ArrayList<>();
|
|
|
|
|
|
- int attendanceError = indexBaseMonthDataDao.getAttendanceError(organIds,startTime);
|
|
|
+ int attendanceError = indexBaseMonthDataDao.getAttendanceError(organIds,startTime,classGroupIds);
|
|
|
fourChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_EXCEPTION_ATTENDANCE, IndexErrorType.TEACHER_EXCEPTION_ATTENDANCE.getMsg(), attendanceError, null));
|
|
|
|
|
|
int noAttendance = indexBaseMonthDataDao.getNoAttendance(organIds,startTime);
|