Joburgess преди 5 години
родител
ревизия
44122a5119
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/ExamRoomStudentRelationServiceImpl.java

+ 5 - 0
edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/ExamRoomStudentRelationServiceImpl.java

@@ -251,6 +251,11 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 			throw new BizException("考级项目不存在");
 		}
 
+		ExamOrganizationRelation examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(examId, selfOrganId);
+		if(Objects.isNull(examOrganizationRelation)||examOrganizationRelation.getIsAllowArrangeExam()==0){
+			throw new BizException("无权操作");
+		}
+
 		List<Integer> childOrganIds = organizationService.getChildOrganIds(selfOrganId, true);
 
 		int sendExamPlanRooms = examRoomDao.countSendExamPlanRooms(examId, childOrganIds);