|
@@ -1429,14 +1429,14 @@ public class ExtractConfigServiceImpl implements ExtractConfigService {
|
|
|
throw new StatusException("请先同步考生再创建调卷规则");
|
|
|
}
|
|
|
for(ExamCourseRelationBean course:courseInfoList) {
|
|
|
- createByCourse(req.getRootOrgId(), examRes.getExamBean(), course);
|
|
|
+ createByCourse(param.getRootOrgId(), examRes.getExamBean(), course);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private void createByCourse(Long rootOrgId,ExamBean examBean,ExamCourseRelationBean course) {
|
|
|
List<RandomPaperListVo> rps=randomPaperService.getList(rootOrgId,course.getCourseId());
|
|
|
if(CollectionUtils.isEmpty(rps)) {
|
|
|
- throw new StatusException("没有启用的随机抽题模板");
|
|
|
+ throw new StatusException(course.getCourseName()+",没有启用的随机抽题模板");
|
|
|
}
|
|
|
if(rps.size()>1) {
|
|
|
throw new StatusException("存在多个启用的随机抽题模板");
|