|
@@ -221,8 +221,8 @@ public class ExamQuestionOuterServiceProvider extends ControllerSupport implemen
|
|
|
throw new StatusException("103001", "考试记录id不允许为空");
|
|
|
}
|
|
|
|
|
|
- if (null == req.getCourseId()) {
|
|
|
- throw new StatusException("103002", "课程id不允许为空");
|
|
|
+ if (null == req.getCourseCode()) {
|
|
|
+ throw new StatusException("103002", "课程代码不允许为空");
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNullOrEmpty(req.getPaperType())) {
|
|
@@ -233,13 +233,8 @@ public class ExamQuestionOuterServiceProvider extends ControllerSupport implemen
|
|
|
throw new StatusException("103004", "原始试卷id不允许为空");
|
|
|
}
|
|
|
|
|
|
- CourseCacheBean course = CacheHelper.getCourse(req.getCourseId());
|
|
|
- if (null == course) {
|
|
|
- throw new StatusException("103005", "课程id不正确");
|
|
|
- }
|
|
|
-
|
|
|
ExtractConfigPaperCacheBean extractConfigPaper = CacheHelper.getExtractConfigPaper(req.getExamId(),
|
|
|
- course.getCode(), req.getPaperType(), req.getBasePaperId());
|
|
|
+ req.getCourseCode(), req.getPaperType(), req.getBasePaperId());
|
|
|
|
|
|
OuterGetPaperStructResp resp = new OuterGetPaperStructResp();
|
|
|
if (null != extractConfigPaper.getDefaultPaper()) {
|