|
@@ -138,10 +138,18 @@ public class ExamController extends ControllerSupport {
|
|
|
public List<ExamPaperTypeRelationEntity> queryExamCoursePaperTypeList(
|
|
|
@RequestParam(required = true) Long examId,
|
|
|
@RequestParam(required = true) Long courseId) {
|
|
|
+
|
|
|
+ if (null == examId) {
|
|
|
+ throw new StatusException("E-001251", "examId is null");
|
|
|
+ }
|
|
|
+ if (null == courseId) {
|
|
|
+ throw new StatusException("E-001252", "courseId is null");
|
|
|
+ }
|
|
|
ExamEntity one = examRepo.findOne(examId);
|
|
|
if (null == one) {
|
|
|
- throw new StatusException("E-001250", "examId is wrong");
|
|
|
+ throw new StatusException("E-001253", "examId is wrong");
|
|
|
}
|
|
|
+
|
|
|
validateRootOrgIsolation(one.getRootOrgId());
|
|
|
|
|
|
List<ExamPaperTypeRelationEntity> list = examPaperTypeRelationRepo
|