|
@@ -299,7 +299,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
//如果当前用户只有教务老师角色,那么只能看到他所管理的课程组的信息
|
|
|
List<Long> classGroupIds = null;
|
|
|
Integer educationUserId = null;
|
|
|
- if (userRole.size() == 1 && userRole.contains(SysUserRole.EDUCATIONAL_TEACHER)) {
|
|
|
+ if (!sysUser.getIsSuperAdmin() && userRole.size() == 1 && userRole.contains(SysUserRole.EDUCATIONAL_TEACHER)) {
|
|
|
//获取教务老师关联的班级列表
|
|
|
classGroupIds = classGroupDao.queryGroupClassGroupIds(sysUser.getId());
|
|
|
educationUserId = sysUser.getId();
|
|
@@ -462,7 +462,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
//如果当前用户只有教务老师角色,那么只能看到他所管理的课程组的信息
|
|
|
List<Long> classGroupIds = null;
|
|
|
Integer educationUserId = null;
|
|
|
- if (userRole.size() == 1 && userRole.contains(SysUserRole.EDUCATIONAL_TEACHER)) {
|
|
|
+ if (!sysUser.getIsSuperAdmin() && userRole.size() == 1 && userRole.contains(SysUserRole.EDUCATIONAL_TEACHER)) {
|
|
|
//获取教务老师关联的班级列表
|
|
|
classGroupIds = classGroupDao.queryGroupClassGroupIds(sysUser.getId());
|
|
|
educationUserId = sysUser.getId();
|