Ver código fonte

管理员关联分布查询,不再默认查询所有分部

zouxuan 4 anos atrás
pai
commit
eb324d273a
45 arquivos alterados com 107 adições e 295 exclusões
  1. 6 8
      mec-teacher/src/main/java/com/ym/mec/teacher/controller/TeacherController.java
  2. 9 11
      mec-web/src/main/java/com/ym/mec/web/controller/ClassGroupController.java
  3. 11 13
      mec-web/src/main/java/com/ym/mec/web/controller/CooperationOrganController.java
  4. 18 22
      mec-web/src/main/java/com/ym/mec/web/controller/CourseReviewController.java
  5. 9 11
      mec-web/src/main/java/com/ym/mec/web/controller/CourseScheduleController.java
  6. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/CourseScheduleTeacherSalaryController.java
  7. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/DegreeController.java
  8. 12 22
      mec-web/src/main/java/com/ym/mec/web/controller/EmployeeController.java
  9. 24 78
      mec-web/src/main/java/com/ym/mec/web/controller/ExportController.java
  10. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/ExtracurricularExercisesController.java
  11. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/ExtracurricularExercisesReplyController.java
  12. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/FinancialExpenditureController.java
  13. 0 8
      mec-web/src/main/java/com/ym/mec/web/controller/IndexController.java
  14. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/InspectionController.java
  15. 9 11
      mec-web/src/main/java/com/ym/mec/web/controller/InspectionItemController.java
  16. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/InspectionItemPlanController.java
  17. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/MusicGroupController.java
  18. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/MusicGroupPaymentCalenderController.java
  19. 0 4
      mec-web/src/main/java/com/ym/mec/web/controller/MusicGroupPaymentCalenderDetailController.java
  20. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/MusicGroupQuitController.java
  21. 0 4
      mec-web/src/main/java/com/ym/mec/web/controller/OperatingReportController.java
  22. 0 4
      mec-web/src/main/java/com/ym/mec/web/controller/PracticeGroupManageController.java
  23. 0 4
      mec-web/src/main/java/com/ym/mec/web/controller/SchoolController.java
  24. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/SellOrderController.java
  25. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/SporadicChargeInfoController.java
  26. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/StudentApplyRefundsController.java
  27. 9 11
      mec-web/src/main/java/com/ym/mec/web/controller/StudentExtracurricularExercisesSituationController.java
  28. 0 4
      mec-web/src/main/java/com/ym/mec/web/controller/StudentManageController.java
  29. 0 10
      mec-web/src/main/java/com/ym/mec/web/controller/StudentPaymentOrderController.java
  30. 0 4
      mec-web/src/main/java/com/ym/mec/web/controller/StudentPaymentRouteOrderController.java
  31. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/StudentRechargeController.java
  32. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/StudentRepairController.java
  33. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/StudentWithdrawController.java
  34. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/SubjectChangeController.java
  35. 0 4
      mec-web/src/main/java/com/ym/mec/web/controller/TeacherAttendanceController.java
  36. 0 8
      mec-web/src/main/java/com/ym/mec/web/controller/TeacherController.java
  37. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/TeacherCourseRewardController.java
  38. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/TeacherCourseStatisticsController.java
  39. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/TeacherSalaryComplaintsController.java
  40. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/VipGroupActivityController.java
  41. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/VipGroupManageController.java
  42. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/VisitController.java
  43. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/WebCourseHomeworkController.java
  44. 0 4
      mec-web/src/main/java/com/ym/mec/web/controller/education/EduPracticeGroupController.java
  45. 0 2
      mec-web/src/main/java/com/ym/mec/web/controller/student/StudentAttendanceController.java

+ 6 - 8
mec-teacher/src/main/java/com/ym/mec/teacher/controller/TeacherController.java

@@ -186,14 +186,12 @@ public class TeacherController extends BaseController {
             return failed(HttpStatus.FORBIDDEN, "请登录");
         }
         String organIds = new String();
-        if (!sysUser.getIsSuperAdmin()) {
-            Teacher teacher = teacherService.get(sysUser.getId());
-            if (StringUtils.isEmpty(organIds)) {
-                organIds = teacher.getTeacherOrganId() + "";
-            }
-            if(StringUtils.isNotBlank(teacher.getFlowOrganRange())){
-                organIds = organIds + "," + teacher.getFlowOrganRange();
-            }
+        Teacher teacher = teacherService.get(sysUser.getId());
+        if (StringUtils.isEmpty(organIds)) {
+            organIds = teacher.getTeacherOrganId() + "";
+        }
+        if(StringUtils.isNotBlank(teacher.getFlowOrganRange())){
+            organIds = organIds + "," + teacher.getFlowOrganRange();
         }
         return succeed(employeeService.findByRole("4,5",organIds));
     }

+ 9 - 11
mec-web/src/main/java/com/ym/mec/web/controller/ClassGroupController.java

@@ -296,17 +296,15 @@ public class ClassGroupController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
-            Employee employee = employeeDao.get(sysUser.getId());
-            if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
-                queryInfo.setOrganIdList(employee.getOrganIdList());
-            }else if(org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())){
-                return failed("用户所在分部异常");
-            }else {
-                List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
-                if(!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))){
-                    return failed("非法请求");
-                }
+        Employee employee = employeeDao.get(sysUser.getId());
+        if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
+            queryInfo.setOrganIdList(employee.getOrganIdList());
+        }else if(org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())){
+            return failed("用户所在分部异常");
+        }else {
+            List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
+            if(!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))){
+                return failed("非法请求");
             }
         }
         return succeed(classGroupService.queryClassGroupPage(queryInfo));

+ 11 - 13
mec-web/src/main/java/com/ym/mec/web/controller/CooperationOrganController.java

@@ -65,19 +65,17 @@ public class CooperationOrganController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if(!sysUser.getIsSuperAdmin()){
-			Employee employee = employeeDao.get(sysUser.getId());
-			if (StringUtils.isEmpty(queryInfo.getOrganId())) {
-				queryInfo.setOrganId(employee.getOrganIdList());
-			}else if(StringUtils.isEmpty(employee.getOrganIdList())){
-				return failed("用户所在分部异常");
-			}else {
-				List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
-				if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){
-					return failed("非法请求");
-				}
-			}
-		}
+        Employee employee = employeeDao.get(sysUser.getId());
+        if (StringUtils.isEmpty(queryInfo.getOrganId())) {
+            queryInfo.setOrganId(employee.getOrganIdList());
+        }else if(StringUtils.isEmpty(employee.getOrganIdList())){
+            return failed("用户所在分部异常");
+        }else {
+            List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
+            if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){
+                return failed("非法请求");
+            }
+        }
         return succeed(cooperationOrganService.queryPage(queryInfo));
     }
 

+ 18 - 22
mec-web/src/main/java/com/ym/mec/web/controller/CourseReviewController.java

@@ -52,17 +52,15 @@ public class CourseReviewController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
-            Employee employee = employeeDao.get(sysUser.getId());
-            if (StringUtils.isEmpty(queryInfo.getOrganId())) {
-                queryInfo.setOrganId(employee.getOrganIdList());
-            } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
-                return failed("用户所在分部异常");
-            } else {
-                List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
-                if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
-                    return failed("非法请求");
-                }
+        Employee employee = employeeDao.get(sysUser.getId());
+        if (StringUtils.isEmpty(queryInfo.getOrganId())) {
+            queryInfo.setOrganId(employee.getOrganIdList());
+        } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
+            return failed("用户所在分部异常");
+        } else {
+            List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
+            if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
+                return failed("非法请求");
             }
         }
         return succeed(courseReviewService.findPracticeGroupReviews(queryInfo));
@@ -90,17 +88,15 @@ public class CourseReviewController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
-            Employee employee = employeeDao.get(sysUser.getId());
-            if (StringUtils.isEmpty(queryInfo.getOrganId())) {
-                queryInfo.setOrganId(employee.getOrganIdList());
-            } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
-                return failed("用户所在分部异常");
-            } else {
-                List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
-                if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
-                    return failed("非法请求");
-                }
+        Employee employee = employeeDao.get(sysUser.getId());
+        if (StringUtils.isEmpty(queryInfo.getOrganId())) {
+            queryInfo.setOrganId(employee.getOrganIdList());
+        } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
+            return failed("用户所在分部异常");
+        } else {
+            List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
+            if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
+                return failed("非法请求");
             }
         }
         return succeed(courseReviewService.getVipCourseReviews(queryInfo));

+ 9 - 11
mec-web/src/main/java/com/ym/mec/web/controller/CourseScheduleController.java

@@ -82,17 +82,15 @@ public class CourseScheduleController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
-            Employee employee = employeeDao.get(sysUser.getId());
-            if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
-                queryInfo.setOrganIdList(employee.getOrganIdList());
-            }else if(org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())){
-                return failed("用户所在分部异常");
-            }else {
-                List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
-                if(!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))){
-                    return failed("非法请求");
-                }
+        Employee employee = employeeDao.get(sysUser.getId());
+        if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
+            queryInfo.setOrganIdList(employee.getOrganIdList());
+        }else if(org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())){
+            return failed("用户所在分部异常");
+        }else {
+            List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
+            if(!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))){
+                return failed("非法请求");
             }
         }
         return succeed(courseScheduleService.endFindCourseSchedules(queryInfo));

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/CourseScheduleTeacherSalaryController.java

@@ -55,7 +55,6 @@ public class CourseScheduleTeacherSalaryController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -67,7 +66,6 @@ public class CourseScheduleTeacherSalaryController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
 
         Map<String, Object> result=new HashMap<>();
         result.put("pageInfo", courseScheduleTeacherSalaryService.findIsSettlementCourseSalarys(queryInfo));

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/DegreeController.java

@@ -42,7 +42,6 @@ public class DegreeController extends BaseController { ;
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -54,7 +53,6 @@ public class DegreeController extends BaseController { ;
                     return failed("非法请求");
                 }
             }
-        }
         queryInfo.setSort("create_time_");
         queryInfo.setOrder("DESC");
         return succeed(degreeRegistrationService.getPageList(queryInfo));

+ 12 - 22
mec-web/src/main/java/com/ym/mec/web/controller/EmployeeController.java

@@ -53,7 +53,6 @@ public class EmployeeController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-		if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeService.get(sysUser.getId());
 			if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 				queryInfo.setOrganId(employee.getOrganIdList());
@@ -65,7 +64,6 @@ public class EmployeeController extends BaseController {
                     return failed("非法请求");
                 }
             }
-		}
         return succeed(employeeService.queryEmployByOrganId(queryInfo));
     }
 
@@ -159,11 +157,9 @@ public class EmployeeController extends BaseController {
         }
         String organIds = new String();
         if(Objects.isNull(organId)){
-            if (!sysUser.getIsSuperAdmin()) {
-                Employee employee = employeeService.get(sysUser.getId());
-                if (StringUtils.isEmpty(organIds)) {
-                    organIds = employee.getOrganIdList();
-                }
+            Employee employee = employeeService.get(sysUser.getId());
+            if (StringUtils.isEmpty(organIds)) {
+                organIds = employee.getOrganIdList();
             }
         }else{
             organIds = organId.toString();
@@ -184,11 +180,9 @@ public class EmployeeController extends BaseController {
             sysUser = sysUserFeignService.queryUserById(userId);
         }
         String organIds = new String();
-        if (!sysUser.getIsSuperAdmin()) {
-            Employee employee = employeeService.get(sysUser.getId());
-            if (StringUtils.isEmpty(organIds)) {
-                organIds = employee.getOrganIdList();
-            }
+        Employee employee = employeeService.get(sysUser.getId());
+        if (StringUtils.isEmpty(organIds)) {
+            organIds = employee.getOrganIdList();
         }
         return succeed(employeeService.findByRole("4",organIds));
     }
@@ -202,11 +196,9 @@ public class EmployeeController extends BaseController {
             return failed("用户信息获取失败");
         }
         if(StringUtils.isEmpty(organIds)){
-            if (!sysUser.getIsSuperAdmin()) {
-                Employee employee = employeeService.get(sysUser.getId());
-                if (StringUtils.isEmpty(organIds)) {
-                    organIds=employee.getOrganIdList();
-                }
+            Employee employee = employeeService.get(sysUser.getId());
+            if (StringUtils.isEmpty(organIds)) {
+                organIds=employee.getOrganIdList();
             }
         }
         return succeed(employeeService.findByRole("37",organIds));
@@ -240,11 +232,9 @@ public class EmployeeController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
-            Employee employee = employeeService.get(sysUser.getId());
-            if (StringUtils.isEmpty(organIds)) {
-                organIds=employee.getOrganIdList();
-            }
+        Employee employee = employeeService.get(sysUser.getId());
+        if (StringUtils.isEmpty(organIds)) {
+            organIds=employee.getOrganIdList();
         }
         return succeed(employeeService.findAllByRole("37",organIds));
     }

+ 24 - 78
mec-web/src/main/java/com/ym/mec/web/controller/ExportController.java

@@ -140,17 +140,15 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
-            Employee employee = employeeDao.get(sysUser.getId());
-            if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
-                queryInfo.setOrganIdList(employee.getOrganIdList());
-            }else if(org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())){
-                throw new BizException("用户所在分部异常");
-            }else {
-                List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
-                if(!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))){
-                    throw new BizException("非法请求");
-                }
+        Employee employee = employeeDao.get(sysUser.getId());
+        if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
+            queryInfo.setOrganIdList(employee.getOrganIdList());
+        }else if(org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())){
+            throw new BizException("用户所在分部异常");
+        }else {
+            List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
+            if(!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))){
+                throw new BizException("非法请求");
             }
         }
         List<ClassGroupTeachersDto> rows = classGroupService.queryClassGroupPage(queryInfo).getRows();
@@ -241,17 +239,15 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
-            Employee employee = employeeDao.get(sysUser.getId());
-            if (StringUtils.isEmpty(queryInfo.getOrganId())) {
-                queryInfo.setOrganId(employee.getOrganIdList());
-            } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
-                throw new BizException("用户所在分部异常");
-            } else {
-                List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
-                if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
-                    throw new BizException("非法请求");
-                }
+        Employee employee = employeeDao.get(sysUser.getId());
+        if (StringUtils.isEmpty(queryInfo.getOrganId())) {
+            queryInfo.setOrganId(employee.getOrganIdList());
+        } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
+            throw new BizException("用户所在分部异常");
+        } else {
+            List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
+            if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
+                throw new BizException("非法请求");
             }
         }
         List<ExportVipGroupActivityDto> rows = vipGroupActivityService.exportVipGroupActivity(queryInfo);
@@ -292,7 +288,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -304,7 +299,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List<ExportStudentAttendanceDto> rows = studentAttendanceService.exportStudentAttendancesQueryPage(queryInfo).getRows();
         OutputStream outputStream = response.getOutputStream();
         try {
@@ -373,7 +367,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -385,7 +378,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         queryInfo.setPage(1);
         queryInfo.setRows(49999);
         List<MusicGroupPaymentCalenderAuditDto> rows = musicGroupPaymentCalenderService.auditList(queryInfo).getRows();
@@ -424,7 +416,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -436,7 +427,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List rows = teacherAttendanceService.queryTeacherAttendances(queryInfo).getRows();
         OutputStream outputStream = response.getOutputStream();
         try {
@@ -506,7 +496,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -518,7 +507,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List<StudentBuyPracticeDto> rows = practiceGroupService.studentBuys(queryInfo).getRows();
         OutputStream outputStream = response.getOutputStream();
         try {
@@ -633,7 +621,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -645,7 +632,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         Date endTime = queryInfo.getEndTime();
         if (endTime != null) {
             queryInfo.setEndTime(DateUtil.addDays(endTime, 1));
@@ -686,7 +672,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -698,7 +683,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         queryInfo.setIsExport(true);
         List<StudentManageListDto> rows = studentManageService.findStudentsByOrganId(queryInfo).getRows();
         OutputStream outputStream = response.getOutputStream();
@@ -740,7 +724,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -752,7 +735,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List<PracticeGroupDto> rows = practiceGroupService.findPracticeGroups(queryInfo).getRows();
         OutputStream outputStream = response.getOutputStream();
         if (rows != null && rows.size() > 0) {
@@ -805,7 +787,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -817,7 +798,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List<VipGroup> rows = vipGroupService.findVipGroups(queryInfo).getRows();
         OutputStream outputStream = response.getOutputStream();
         if (rows != null && rows.size() > 0) {
@@ -861,7 +841,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -873,7 +852,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List<CourseScheduleEndDto> rows = scheduleService.endFindCourseSchedules(queryInfo).getRows();
         for (CourseScheduleEndDto row : rows) {
             row.setIsComplaints(StringUtils.equals(row.getIsComplaints(), "1") ? "有" : "无");
@@ -915,7 +893,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -927,7 +904,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List<SporadicChargeInfo> rows = sporadicChargeInfoService.queryDetailPage(queryInfo).getRows();
         for (SporadicChargeInfo row : rows) {
             row.setOpenFlagStr(row.getOpenFlag().equals(0) ? "开启" : "关闭");
@@ -1089,14 +1065,12 @@ public class ExportController extends BaseController {
     @PreAuthorize("@pcs.hasPermissions('export/orderList')")
     public void orderList(StudentPaymentOrderQueryInfo queryInfo, HttpServletResponse response) throws IOException {
         SysUser sysUser = sysUserFeignService.queryUserInfo();
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getRoutingOrganId()) && "3".equals(queryInfo.getOrderType())) {
                 queryInfo.setRoutingOrganId(employee.getOrganIdList());
             } else if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
             }
-        }
         if (StringUtils.isNotBlank(queryInfo.getSearch())) {
             List<BasicUserDto> users = studentPaymentOrderDao.getUsers(queryInfo.getSearch());
             List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
@@ -1376,10 +1350,8 @@ public class ExportController extends BaseController {
     @PreAuthorize("@pcs.hasPermissions('export/courseReviews')")
     public void courseReviews(CourseReviewQueryInfo queryInfo, HttpServletResponse response) throws IOException {
         SysUser sysUser = sysUserFeignService.queryUserInfo();
-        if (!sysUser.getIsSuperAdmin()) {
-            Employee employee = employeeDao.get(sysUser.getId());
-            queryInfo.setOrganId(employee.getOrganIdList());
-        }
+        Employee employee = employeeDao.get(sysUser.getId());
+        queryInfo.setOrganId(employee.getOrganIdList());
         queryInfo.setIsExport(1);
         queryInfo.setPage(1);
         queryInfo.setRows(49999);
@@ -1465,10 +1437,8 @@ public class ExportController extends BaseController {
     public void practiceGroup(HttpServletResponse response) throws IOException {
         SysUser sysUser = sysUserFeignService.queryUserInfo();
         String organIds = null;
-        if (!sysUser.getIsSuperAdmin()) {
-            Employee employee = employeeDao.get(sysUser.getId());
-            organIds = employee.getOrganIdList();
-        }
+        Employee employee = employeeDao.get(sysUser.getId());
+        organIds = employee.getOrganIdList();
 
         List<CourseGroupExportDto> practiceGroupExports = practiceGroupDao.getPracticeGroupExport(organIds);
         if (practiceGroupExports == null || practiceGroupExports.size() == 0) {
@@ -1537,10 +1507,8 @@ public class ExportController extends BaseController {
     public void vipGroup(HttpServletResponse response) throws IOException {
         SysUser sysUser = sysUserFeignService.queryUserInfo();
         String organIds = null;
-        if (!sysUser.getIsSuperAdmin()) {
-            Employee employee = employeeDao.get(sysUser.getId());
-            organIds = employee.getOrganIdList();
-        }
+        Employee employee = employeeDao.get(sysUser.getId());
+        organIds = employee.getOrganIdList();
 
         List<CourseGroupExportDto> vipGroupExports = courseScheduleDao.getVipGroupExport(organIds);
         if (vipGroupExports == null || vipGroupExports.size() == 0) {
@@ -1623,7 +1591,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -1635,7 +1602,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List<ExtraExerciseStudentsDto> rows = extracurricularExercisesReplyService.findExtraExercises(queryInfo).getRows();
         if (CollectionUtils.isEmpty(rows)) {
             response.setStatus(500);
@@ -1684,7 +1650,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -1696,7 +1661,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List<StudentExercisesSituationDto> rows = studentExtracurricularExercisesSituationService.findStudentExtracurricularExercisesSituations(queryInfo).getRows();
         if (CollectionUtils.isEmpty(rows)) {
             response.setStatus(500);
@@ -1739,7 +1703,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -1751,7 +1714,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         List<TeacherCourseSalaryDetail4WebDto> rows = courseScheduleTeacherSalaryService.findIsSettlementCourseSalarys(queryInfo).getRows();
         if (CollectionUtils.isEmpty(rows)) {
             response.setStatus(500);
@@ -1824,7 +1786,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -1836,7 +1797,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         PageInfo<Student4operating> PageOperatingStudents = studentManageService.getOperatingStudents(queryInfo);
 
         if (PageOperatingStudents.getTotal() <= 0) {
@@ -1899,10 +1859,8 @@ public class ExportController extends BaseController {
     @PreAuthorize("@pcs.hasPermissions('export/vipCourseReviews')")
     public void vipCourseReviews(CourseReviewQueryInfo queryInfo, HttpServletResponse response) throws IOException {
         SysUser sysUser = sysUserFeignService.queryUserInfo();
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             queryInfo.setOrganId(employee.getOrganIdList());
-        }
         queryInfo.setIsExport(1);
         queryInfo.setPage(1);
         queryInfo.setRows(49999);
@@ -2043,7 +2001,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new IOException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -2055,7 +2012,6 @@ public class ExportController extends BaseController {
                     throw new IOException("非法请求");
                 }
             }
-        }
         queryInfo.setRows(65000);
         PageInfo<CooperationOrgan> pageList = cooperationOrganService.queryPage(queryInfo);
         if (pageList.getTotal() <= 0) {
@@ -2095,12 +2051,10 @@ public class ExportController extends BaseController {
     @PreAuthorize("@pcs.hasPermissions('export/musicGroupRegister')")
     public void musicGroupRegister(String organIds, HttpServletResponse response) throws IOException {
         SysUser sysUser = sysUserFeignService.queryUserInfo();
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isBlank(organIds)) {
                 organIds = employee.getOrganIdList();
             }
-        }
         List<MusicGroupStatusEnum> musicGroupStatusList = new ArrayList<>();
         musicGroupStatusList.add(MusicGroupStatusEnum.APPLY);
         musicGroupStatusList.add(MusicGroupStatusEnum.PAY);
@@ -2222,14 +2176,12 @@ public class ExportController extends BaseController {
     @PreAuthorize("@pcs.hasPermissions('export/routeOrderList')")
     public void routeOrderList(StudentPaymentOrderQueryInfo queryInfo, HttpServletResponse response) throws IOException {
         SysUser sysUser = sysUserFeignService.queryUserInfo();
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getRoutingOrganId()) && queryInfo.getOrderType().equals("3")) {
                 queryInfo.setRoutingOrganId(employee.getOrganIdList());
             } else if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
             }
-        }
         if (StringUtils.isNotBlank(queryInfo.getSearch())) {
             List<BasicUserDto> users = studentPaymentOrderDao.getUsers(queryInfo.getSearch());
             List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
@@ -2502,12 +2454,10 @@ public class ExportController extends BaseController {
     @PreAuthorize("@pcs.hasPermissions('export/musicGroupNormalStudentNum')")
     public void musicGroupNormalStudentNum(String organIds, HttpServletResponse response) throws IOException {
         SysUser sysUser = sysUserFeignService.queryUserInfo();
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isBlank(organIds)) {
                 organIds = employee.getOrganIdList();
             }
-        }
 
         List<MusicGroupStatusEnum> musicGroupStatusList = new ArrayList<>();
         musicGroupStatusList.add(MusicGroupStatusEnum.PAY);
@@ -2598,12 +2548,10 @@ public class ExportController extends BaseController {
     @PreAuthorize("@pcs.hasPermissions('export/studentOrder')")
     public void studentOrder(String organIds, Date date, HttpServletResponse response) throws IOException {
         SysUser sysUser = sysUserFeignService.queryUserInfo();
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isBlank(organIds)) {
                 organIds = employee.getOrganIdList();
             }
-        }
         Date startTime = DateUtil.getFirstDayOfMonth(date);
         Date EndTime = DateUtil.getLastSecondWithDay(DateUtil.getLastDayOfMonth(date));
 
@@ -2696,7 +2644,6 @@ public class ExportController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -2708,7 +2655,6 @@ public class ExportController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         if (queryInfo.getEndTime() != null) {
             queryInfo.setEndTime(DateUtil.getLastTimeWithDay(queryInfo.getEndTime()));
         }

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/ExtracurricularExercisesController.java

@@ -42,7 +42,6 @@ public class ExtracurricularExercisesController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -54,7 +53,6 @@ public class ExtracurricularExercisesController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         return succeed(extracurricularExercisesService.queryPage(queryInfo));
     }
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/ExtracurricularExercisesReplyController.java

@@ -39,7 +39,6 @@ public class ExtracurricularExercisesReplyController extends BaseController {
         if (sysUser == null) {
             throw new BizException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -51,7 +50,6 @@ public class ExtracurricularExercisesReplyController extends BaseController {
                     throw new BizException("非法请求");
                 }
             }
-        }
         return succeed(extracurricularExercisesReplyService.findExtraExercises(queryInfo));
     }
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/FinancialExpenditureController.java

@@ -48,7 +48,6 @@ public class FinancialExpenditureController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -60,7 +59,6 @@ public class FinancialExpenditureController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(financialExpenditureService.queryFinancialExpenditurePage(queryInfo));
     }
 

+ 0 - 8
mec-web/src/main/java/com/ym/mec/web/controller/IndexController.java

@@ -123,7 +123,6 @@ public class IndexController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if (!sysUser.getIsSuperAdmin()) {
 			Employee employee = employeeService.get(sysUser.getId());
 			if (StringUtils.isBlank(indexDataQueryInfo.getOrganId())) {
 				indexDataQueryInfo.setOrganId(employee.getOrganIdList());
@@ -135,7 +134,6 @@ public class IndexController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
 		return succeed(indexService.getIndexBaseData(indexDataQueryInfo));
 	}
 
@@ -145,7 +143,6 @@ public class IndexController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if (!sysUser.getIsSuperAdmin()) {
 			Employee employee = employeeService.get(sysUser.getId());
 			if (StringUtils.isBlank(organId)) {
 				organId = employee.getOrganIdList();
@@ -157,7 +154,6 @@ public class IndexController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
 		return succeed(indexService.hasIndexErrData(organId));
 	}
 
@@ -167,7 +163,6 @@ public class IndexController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if (!sysUser.getIsSuperAdmin()) {
 			Employee employee = employeeService.get(sysUser.getId());
 			if (StringUtils.isBlank(organId)) {
 				organId = employee.getOrganIdList();
@@ -179,7 +174,6 @@ public class IndexController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
 		return succeed(indexService.getIndexErrData(organId, errorType));
 	}
 
@@ -189,7 +183,6 @@ public class IndexController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if (!sysUser.getIsSuperAdmin()) {
 			Employee employee = employeeService.get(sysUser.getId());
 			if (StringUtils.isBlank(organId)) {
 				organId = employee.getOrganIdList();
@@ -201,7 +194,6 @@ public class IndexController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
 		return succeed(indexService.getRemindMatterData(organId));
 	}
 }

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/InspectionController.java

@@ -72,7 +72,6 @@ public class InspectionController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -84,7 +83,6 @@ public class InspectionController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(inspectionService.getPageList(queryInfo));
     }
 

+ 9 - 11
mec-web/src/main/java/com/ym/mec/web/controller/InspectionItemController.java

@@ -56,17 +56,15 @@ public class InspectionItemController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
-            Employee employee = employeeDao.get(sysUser.getId());
-            if (StringUtils.isEmpty(queryInfo.getOrganId())) {
-                queryInfo.setOrganId(employee.getOrganIdList());
-            } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
-                return failed("用户所在分部异常");
-            } else {
-                List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
-                if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
-                    return failed("非法请求");
-                }
+        Employee employee = employeeDao.get(sysUser.getId());
+        if (StringUtils.isEmpty(queryInfo.getOrganId())) {
+            queryInfo.setOrganId(employee.getOrganIdList());
+        } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
+            return failed("用户所在分部异常");
+        } else {
+            List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
+            if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
+                return failed("非法请求");
             }
         }
         List<Integer> userRole = employeeDao.queryUserRole(sysUser.getId());

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/InspectionItemPlanController.java

@@ -72,7 +72,6 @@ public class InspectionItemPlanController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -84,7 +83,6 @@ public class InspectionItemPlanController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         if (queryInfo.getStartTime() != null) {
             queryInfo.setStartTime(DateUtil.trunc(queryInfo.getStartTime()));
         }

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/MusicGroupController.java

@@ -112,7 +112,6 @@ public class MusicGroupController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if(!sysUser.getIsSuperAdmin()){
 			Employee employee = employeeDao.get(sysUser.getId());
 			if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 				queryInfo.setOrganId(employee.getOrganIdList());
@@ -124,7 +123,6 @@ public class MusicGroupController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
 		return succeed(musicGroupService.queryMusicGroupPage(queryInfo));
 	}
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/MusicGroupPaymentCalenderController.java

@@ -119,7 +119,6 @@ public class MusicGroupPaymentCalenderController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -131,7 +130,6 @@ public class MusicGroupPaymentCalenderController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(musicGroupPaymentCalenderService.auditList(queryInfo));
     }
 

+ 0 - 4
mec-web/src/main/java/com/ym/mec/web/controller/MusicGroupPaymentCalenderDetailController.java

@@ -114,7 +114,6 @@ public class MusicGroupPaymentCalenderDetailController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeService.get(sysUser.getId());
             if (StringUtils.isBlank(queryInfo.getOrganIds())) {
                 queryInfo.setOrganIds(employee.getOrganIdList());
@@ -126,7 +125,6 @@ public class MusicGroupPaymentCalenderDetailController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(musicGroupPaymentCalenderDetailService.queryArrearageStudents(queryInfo));
     }
 
@@ -138,7 +136,6 @@ public class MusicGroupPaymentCalenderDetailController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeService.get(sysUser.getId());
             if (StringUtils.isBlank(organIds)) {
                 organIds = employee.getOrganIdList();
@@ -150,7 +147,6 @@ public class MusicGroupPaymentCalenderDetailController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(musicGroupPaymentCalenderDetailService.getNoPaymentStudentMusicGroups(organIds));
     }
 }

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/MusicGroupQuitController.java

@@ -55,7 +55,6 @@ public class MusicGroupQuitController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if (!sysUser.getIsSuperAdmin()) {
 			Employee employee = employeeService.get(sysUser.getId());
 			if (StringUtils.isBlank(queryInfo.getOrganId())) {
 				queryInfo.setOrganId(employee.getOrganIdList());
@@ -67,7 +66,6 @@ public class MusicGroupQuitController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
 		return succeed(musicGroupQuitService.queryPage(queryInfo));
 	}
 

+ 0 - 4
mec-web/src/main/java/com/ym/mec/web/controller/OperatingReportController.java

@@ -49,7 +49,6 @@ public class OperatingReportController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -61,7 +60,6 @@ public class OperatingReportController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         if (queryInfo.getMonth() != null) {
             queryInfo.setStartTime(DateUtil.getFirstDayOfMonth(queryInfo.getMonth()));
             queryInfo.setEndTime(DateUtil.getLastDayOfMonth(queryInfo.getMonth()));
@@ -78,7 +76,6 @@ public class OperatingReportController extends BaseController {
         if (sysUser == null) {
             throw new IOException("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -90,7 +87,6 @@ public class OperatingReportController extends BaseController {
                     throw new IOException("非法请求");
                 }
             }
-        }
         if (queryInfo.getMonth() != null) {
             queryInfo.setStartTime(DateUtil.getFirstDayOfMonth(queryInfo.getMonth()));
             queryInfo.setEndTime(DateUtil.getLastDayOfMonth(queryInfo.getMonth()));

+ 0 - 4
mec-web/src/main/java/com/ym/mec/web/controller/PracticeGroupManageController.java

@@ -54,7 +54,6 @@ public class PracticeGroupManageController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -66,7 +65,6 @@ public class PracticeGroupManageController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(practiceGroupService.findPracticeGroups(queryInfo));
     }
 
@@ -108,7 +106,6 @@ public class PracticeGroupManageController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -120,7 +117,6 @@ public class PracticeGroupManageController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(practiceGroupService.findPracticeGroupReviews(queryInfo));
     }
 

+ 0 - 4
mec-web/src/main/java/com/ym/mec/web/controller/SchoolController.java

@@ -79,7 +79,6 @@ public class SchoolController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if(!sysUser.getIsSuperAdmin()){
 			Employee employee = employeeDao.get(sysUser.getId());
 			if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 				queryInfo.setOrganId(employee.getOrganIdList());
@@ -91,7 +90,6 @@ public class SchoolController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
         return succeed(schoolService.queryPageDetail(queryInfo));
     }
 
@@ -103,7 +101,6 @@ public class SchoolController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(organId)) {
                 organId = employee.getOrganIdList();
@@ -115,7 +112,6 @@ public class SchoolController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(schoolService.queryByOrganId(organId));
     }
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/SellOrderController.java

@@ -55,7 +55,6 @@ public class SellOrderController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -67,7 +66,6 @@ public class SellOrderController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         if (queryInfo.getEndTime() != null) {
             queryInfo.setEndTime(DateUtil.getLastTimeWithDay(queryInfo.getEndTime()));
         }

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/SporadicChargeInfoController.java

@@ -43,7 +43,6 @@ public class SporadicChargeInfoController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if(!sysUser.getIsSuperAdmin()){
 			Employee employee = employeeDao.get(sysUser.getId());
 			if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 				queryInfo.setOrganId(employee.getOrganIdList());
@@ -55,7 +54,6 @@ public class SporadicChargeInfoController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
 		queryInfo.setSort("id_");
 		return succeed(sporadicChargeInfoService.queryDetailPage(queryInfo));
 	}

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/StudentApplyRefundsController.java

@@ -43,7 +43,6 @@ public class StudentApplyRefundsController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if(!sysUser.getIsSuperAdmin()){
 			Employee employee = employeeDao.get(sysUser.getId());
 			if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 				queryInfo.setOrganId(employee.getOrganIdList());
@@ -55,7 +54,6 @@ public class StudentApplyRefundsController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
         return succeed(studentApplyRefundsService.queryPage(queryInfo));
     }
 }

+ 9 - 11
mec-web/src/main/java/com/ym/mec/web/controller/StudentExtracurricularExercisesSituationController.java

@@ -63,17 +63,15 @@ public class StudentExtracurricularExercisesSituationController extends BaseCont
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
-            Employee employee = employeeDao.get(sysUser.getId());
-            if (StringUtils.isEmpty(queryInfo.getOrganIdList())) {
-                queryInfo.setOrganIdList(employee.getOrganIdList());
-            }else if(StringUtils.isEmpty(employee.getOrganIdList())){
-                return failed("用户所在分部异常");
-            }else {
-                List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
-                if(!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))){
-                    return failed("非法请求");
-                }
+        Employee employee = employeeDao.get(sysUser.getId());
+        if (StringUtils.isEmpty(queryInfo.getOrganIdList())) {
+            queryInfo.setOrganIdList(employee.getOrganIdList());
+        }else if(StringUtils.isEmpty(employee.getOrganIdList())){
+            return failed("用户所在分部异常");
+        }else {
+            List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
+            if(!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))){
+                return failed("非法请求");
             }
         }
         return succeed(studentExtracurricularExercisesSituationService.findStudentExtracurricularExercisesSituations(queryInfo));

+ 0 - 4
mec-web/src/main/java/com/ym/mec/web/controller/StudentManageController.java

@@ -72,7 +72,6 @@ public class StudentManageController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -84,7 +83,6 @@ public class StudentManageController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         queryInfo.setIsExport(false);
         return succeed(studentManageService.findStudentsByOrganId(queryInfo));
     }
@@ -320,7 +318,6 @@ public class StudentManageController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -332,7 +329,6 @@ public class StudentManageController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(studentManageService.getOperatingStudents(queryInfo));
     }
 

+ 0 - 10
mec-web/src/main/java/com/ym/mec/web/controller/StudentPaymentOrderController.java

@@ -60,7 +60,6 @@ public class StudentPaymentOrderController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -72,7 +71,6 @@ public class StudentPaymentOrderController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         if (StringUtils.isNotBlank(queryInfo.getSearch())) {
             List<BasicUserDto> users = studentPaymentOrderDao.getUsers(queryInfo.getSearch());
             List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
@@ -106,7 +104,6 @@ public class StudentPaymentOrderController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -118,7 +115,6 @@ public class StudentPaymentOrderController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(studentPaymentOrderService.sporadicQueryPage(queryInfo));
     }
 
@@ -130,7 +126,6 @@ public class StudentPaymentOrderController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -142,7 +137,6 @@ public class StudentPaymentOrderController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         queryInfo.setOrderType("1");
 
         PageInfo<StudentPaymentOrderDto> studentPaymentOrderPageInfo = studentPaymentOrderService.OrderQueryPage(queryInfo);
@@ -166,7 +160,6 @@ public class StudentPaymentOrderController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -178,7 +171,6 @@ public class StudentPaymentOrderController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         queryInfo.setOrderType("2");
 
         PageInfo<StudentPaymentOrderDto> studentPaymentOrderPageInfo = studentPaymentOrderService.OrderQueryPage(queryInfo);
@@ -218,7 +210,6 @@ public class StudentPaymentOrderController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getRoutingOrganId())) {
                 queryInfo.setRoutingOrganId(employee.getOrganIdList());
@@ -230,7 +221,6 @@ public class StudentPaymentOrderController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
 
         PageInfo<StudentPaymentOrderDto> studentPaymentOrderPageInfo = studentPaymentOrderService.OrderQueryPage(queryInfo);
         return succeed(studentPaymentOrderPageInfo);

+ 0 - 4
mec-web/src/main/java/com/ym/mec/web/controller/StudentPaymentRouteOrderController.java

@@ -65,7 +65,6 @@ public class StudentPaymentRouteOrderController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getRoutingOrganId())) {
                 queryInfo.setRoutingOrganId(employee.getOrganIdList());
@@ -77,7 +76,6 @@ public class StudentPaymentRouteOrderController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         if (StringUtils.isNotBlank(queryInfo.getSearch())) {
             List<BasicUserDto> users = studentPaymentOrderDao.getUsers(queryInfo.getSearch());
             List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
@@ -99,7 +97,6 @@ public class StudentPaymentRouteOrderController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -111,7 +108,6 @@ public class StudentPaymentRouteOrderController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
 
         return succeed(studentPaymentRouteOrderService.queryAuditList(queryInfo));
     }

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/StudentRechargeController.java

@@ -44,7 +44,6 @@ public class StudentRechargeController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if(!sysUser.getIsSuperAdmin()){
 			Employee employee = employeeDao.get(sysUser.getId());
 			if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 				queryInfo.setOrganId(employee.getOrganIdList());
@@ -56,7 +55,6 @@ public class StudentRechargeController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
 		return succeed(studentRechargeService.queryPage(queryInfo));
 	}
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/StudentRepairController.java

@@ -46,7 +46,6 @@ public class StudentRepairController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -58,7 +57,6 @@ public class StudentRepairController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         Date endTime = queryInfo.getEndTime();
         if(endTime != null){
             queryInfo.setEndTime(DateUtil.addDays(endTime, 1));

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/StudentWithdrawController.java

@@ -54,7 +54,6 @@ public class StudentWithdrawController extends BaseController {
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
-		if(!sysUser.getIsSuperAdmin()){
 			Employee employee = employeeDao.get(sysUser.getId());
 			if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 				queryInfo.setOrganId(employee.getOrganIdList());
@@ -66,7 +65,6 @@ public class StudentWithdrawController extends BaseController {
 					return failed("非法请求");
 				}
 			}
-		}
 		return succeed(studentWithdrawService.queryPage(queryInfo));
 	}
 }

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/SubjectChangeController.java

@@ -56,7 +56,6 @@ public class SubjectChangeController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganIdList())) {
                 queryInfo.setOrganIdList(employee.getOrganIdList());
@@ -68,7 +67,6 @@ public class SubjectChangeController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         if (queryInfo.getEndTime() != null) {
             queryInfo.setEndTime(DateUtil.getLastTimeWithDay(queryInfo.getEndTime()));
         }

+ 0 - 4
mec-web/src/main/java/com/ym/mec/web/controller/TeacherAttendanceController.java

@@ -51,7 +51,6 @@ public class TeacherAttendanceController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -63,7 +62,6 @@ public class TeacherAttendanceController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(teacherAttendanceService.queryTeacherAttendances(queryInfo));
     }
 
@@ -107,7 +105,6 @@ public class TeacherAttendanceController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -119,7 +116,6 @@ public class TeacherAttendanceController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(teacherAttendanceService.queryTeacherAttendanceComplaints(queryInfo));
     }
 

+ 0 - 8
mec-web/src/main/java/com/ym/mec/web/controller/TeacherController.java

@@ -55,7 +55,6 @@ public class TeacherController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -67,7 +66,6 @@ public class TeacherController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(teacherService.queryPageDetail(queryInfo));
     }
 
@@ -97,7 +95,6 @@ public class TeacherController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(organId)) {
                 organId = employee.getOrganIdList();
@@ -109,7 +106,6 @@ public class TeacherController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(teacherService.findTeachers(organId));
     }
 
@@ -128,7 +124,6 @@ public class TeacherController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(organId)) {
                 organId = employee.getOrganIdList();
@@ -140,7 +135,6 @@ public class TeacherController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(teacherService.findTeacherByOrganId(organId,subjectIds,jobNature));
     }
 
@@ -152,7 +146,6 @@ public class TeacherController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -164,7 +157,6 @@ public class TeacherController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(teacherService.queryPageName(queryInfo));
     }
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/TeacherCourseRewardController.java

@@ -44,7 +44,6 @@ public class TeacherCourseRewardController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -56,7 +55,6 @@ public class TeacherCourseRewardController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         Date endTime = queryInfo.getEndTime();
         if(endTime != null){
             queryInfo.setEndTime(DateUtil.addDays(endTime, 1));

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/TeacherCourseStatisticsController.java

@@ -41,7 +41,6 @@ public class TeacherCourseStatisticsController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -53,7 +52,6 @@ public class TeacherCourseStatisticsController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(teacherCourseStatisticsService.queryPageDetail(queryInfo));
     }
 }

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/TeacherSalaryComplaintsController.java

@@ -39,7 +39,6 @@ public class TeacherSalaryComplaintsController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -51,7 +50,6 @@ public class TeacherSalaryComplaintsController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(teacherSalaryComplaintsService.queryPage(queryInfo));
     }
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/VipGroupActivityController.java

@@ -55,7 +55,6 @@ public class VipGroupActivityController extends BaseController {
         if(sysUser == null){
             return failed("用户信息获取失败");
         }
-		if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -67,7 +66,6 @@ public class VipGroupActivityController extends BaseController {
                     return failed("非法请求");
                 }
             }
-		}
         return succeed(vipGroupActivityService.queryPage(queryInfo));
     }
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/VipGroupManageController.java

@@ -146,7 +146,6 @@ public class VipGroupManageController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -158,7 +157,6 @@ public class VipGroupManageController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(vipGroupService.findVipGroups(queryInfo));
     }
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/VisitController.java

@@ -45,7 +45,6 @@ public class VisitController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -57,7 +56,6 @@ public class VisitController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(studentVisitService.getPageList(queryInfo));
     }
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/WebCourseHomeworkController.java

@@ -51,7 +51,6 @@ public class WebCourseHomeworkController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if (!sysUser.getIsSuperAdmin()) {
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -63,7 +62,6 @@ public class WebCourseHomeworkController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(courseHomeworkService.queryHomePage(queryInfo));
     }
 

+ 0 - 4
mec-web/src/main/java/com/ym/mec/web/controller/education/EduPracticeGroupController.java

@@ -216,13 +216,11 @@ public class EduPracticeGroupController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(employee.getOrganIdList())){
                 return failed("用户所在分部异常");
             }
             queryInfo.setOrganIdList(Arrays.asList(employee.getOrganIdList().split(",")));
-        }
         return succeed(studentService.findStudentVipGroupList(queryInfo));
     }
 
@@ -263,13 +261,11 @@ public class EduPracticeGroupController extends BaseController {
         if (sysUser == null) {
             return failed(HttpStatus.FORBIDDEN, "请登录");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(employee.getOrganIdList())){
                 return failed("用户所在分部异常");
             }
             queryInfo.setOrganIdList(Arrays.asList(employee.getOrganIdList().split(",")));
-        }
         return succeed(practiceGroupService.findConvertDefeatStudents(queryInfo));
     }
 

+ 0 - 2
mec-web/src/main/java/com/ym/mec/web/controller/student/StudentAttendanceController.java

@@ -71,7 +71,6 @@ public class StudentAttendanceController extends BaseController {
         if (sysUser == null) {
             return failed("用户信息获取失败");
         }
-        if(!sysUser.getIsSuperAdmin()){
             Employee employee = employeeDao.get(sysUser.getId());
             if (StringUtils.isEmpty(queryInfo.getOrganId())) {
                 queryInfo.setOrganId(employee.getOrganIdList());
@@ -83,7 +82,6 @@ public class StudentAttendanceController extends BaseController {
                     return failed("非法请求");
                 }
             }
-        }
         return succeed(studentAttendanceService.findStudentAttendance(queryInfo));
     }