wangwei 6 жил өмнө
parent
commit
adb33338e9

+ 9 - 1
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/controller/ExamController.java

@@ -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